fix: Improve CI, fix builds (#554)
* ci(Test): Add `workflow_dispatch` trigger * ci(Test): Build and run on push and pr * test: Set failfast, remove ERPNext reference * test: Reveal .env file for logs * ci(Test): Rename step * ci(Test): Fix git tag * test: Add -x flag for debugging * test: Fix failing test * ci(Test): Check if built images are used * ci(Test): Configure trigger paths, don't build on schedule * test: Remove bug * ci: Build and test stable images on PR * fix(frappe-nginx): Get back to `ls` from `find` * check if test passes with erpnext images * fix(frappe-worker): Default sites in backup command * get integration test changes back * chore: Fix linting
This commit is contained in:
47
.github/workflows/test.yml
vendored
47
.github/workflows/test.yml
vendored
@@ -1,9 +1,38 @@
|
||||
name: Test
|
||||
name: Integration Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .github/**
|
||||
- build/**
|
||||
- installation/**
|
||||
- tests/**
|
||||
- .dockerignore
|
||||
- docker-bake.hcl
|
||||
- docker-compose.yml
|
||||
- env*
|
||||
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .github/**
|
||||
- build/**
|
||||
- installation/**
|
||||
- tests/**
|
||||
- .dockerignore
|
||||
- docker-bake.hcl
|
||||
- docker-compose.yml
|
||||
- env*
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
schedule:
|
||||
# Every day at 01:00 am
|
||||
# Develop images are built at 12:00 pm, we want to use them
|
||||
# Also, we don't build new images on this event
|
||||
- cron: 0 1 * * *
|
||||
|
||||
jobs:
|
||||
@@ -13,5 +42,21 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Get latest versions
|
||||
if: github.event_name != 'schedule'
|
||||
run: ./.github/scripts/get-latest-tags.sh
|
||||
env:
|
||||
VERSION: 13
|
||||
|
||||
- name: Build
|
||||
if: github.event_name != 'schedule'
|
||||
uses: docker/bake-action@v1.6.0
|
||||
with:
|
||||
files: docker-bake.hcl
|
||||
targets: frappe-develop,frappe-stable
|
||||
load: true
|
||||
env:
|
||||
GIT_TAG: ${{ env.FRAPPE_VERSION }}
|
||||
|
||||
- name: Test
|
||||
run: ./tests/integration-test.sh
|
||||
|
||||
Reference in New Issue
Block a user