build: wait on tests (#4074)

This commit is contained in:
Zach Pomerantz 2022-07-11 07:42:52 -07:00 committed by GitHub
parent 66cae715f4
commit b211c9f150
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 }}