From 2aede292da05127e4354cf092e49fdc972e03350 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Wed, 28 Sep 2022 00:06:23 +0200 Subject: Make the `check` job a central gate in the CI --- .github/workflows/main.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7b4669ac..14e9636b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -74,7 +74,9 @@ jobs: if: always() needs: + - integration-test - test + - test_cygwin runs-on: ubuntu-latest @@ -82,6 +84,23 @@ jobs: - name: Decide whether the needed jobs succeeded or failed uses: re-actors/alls-green@release/v1 with: + allowed-skips: >- + ${{ + ( + ( + github.event_name == 'pull_request' || + ( + github.event_name == 'push' && + github.ref == format( + 'refs/heads/{0}', + github.event.repository.default_branch + ) + ) + ) + ) + && 'integration-test' + || '' + }} jobs: ${{ toJSON(needs) }} test_cygwin: @@ -143,8 +162,6 @@ jobs: release: needs: - check - - test_cygwin - - integration-test if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') runs-on: ubuntu-latest timeout-minutes: 75 -- cgit v1.2.1