From 5ec27ce3a53c476d63413f4efbcc82a1933c93f4 Mon Sep 17 00:00:00 2001 From: Lev Date: Mon, 8 Nov 2021 19:29:34 +0300 Subject: [PATCH] ci(Test): Build and run on push and pr --- .github/workflows/test.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2a6fbe35..032e47a6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,11 +1,19 @@ name: Test on: + push: + branches: + - main + pull_request: + branches: + - main + + workflow_dispatch: + schedule: # Every day at 01:00 am # Develop images are built at 12:00 pm, we want to use them - cron: 0 1 * * * - workflow_dispatch: jobs: test: @@ -14,5 +22,21 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Get latest versions + # if: not schedule + run: ./.github/scripts/get-latest-tags.sh + env: + VERSION: 13 + + - name: Build develop images + # if: not schedule + uses: docker/bake-action@v1.6.0 + with: + files: docker-bake.hcl + targets: frappe-develop,frappe-stable + load: true + env: + GIT_TAG: 13 + - name: Test run: ./tests/integration-test.sh