From b211c9f1507ef88262b9fe8fe94da4b73aa71ab8 Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Mon, 11 Jul 2022 07:42:52 -0700 Subject: [PATCH] build: wait on tests (#4074) --- .github/workflows/release.yaml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b6b0069cd8..11f8b9dabf 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -6,17 +6,24 @@ on: workflow_dispatch: jobs: - wait-on-test: + wait-on-tests: runs-on: ubuntu-latest steps: - - uses: jitterbit/await-check-suites@v1 + - id: unit-tests + uses: fountainhead/action-wait-for-check@v1.0.0 with: - timeoutSeconds: 600 - # Only wait for the first check suite, so that only tests are awaited, and not eg crowdin. - onlyFirstCheckSuite: true + token: ${{ secrets.GITHUB_TOKEN }} + checkName: unit-tests + - id: cypress-tests + uses: fountainhead/action-wait-for-check@v1.0.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + checkName: cypress-tests + - if: steps.unit-tests.outputs.conclusion != 'success' || steps.cypress-tests.outputs.conclusion != 'success' + run: exit 1 tag: - needs: wait-on-test + needs: wait-on-tests runs-on: ubuntu-latest outputs: new_tag: ${{ steps.github-tag-action.outputs.new_tag }}