From a7a03b1f10041d60fce299935f1de59d57f3ab16 Mon Sep 17 00:00:00 2001 From: Lev Date: Mon, 8 Nov 2021 20:45:34 +0300 Subject: [PATCH] ci(Test): Configure trigger paths, don't build on schedule --- .github/workflows/test.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2cc7d70a..376c9bda 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,18 +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: @@ -23,13 +43,13 @@ jobs: uses: actions/checkout@v2 - name: Get latest versions - # if: not schedule + if: github.event_name != 'schedule' run: ./.github/scripts/get-latest-tags.sh env: VERSION: 13 - name: Build - # if: not schedule + if: github.event_name != 'schedule' uses: docker/bake-action@v1.6.0 with: files: docker-bake.hcl