build: wait on tests (#4074)
This commit is contained in:
parent
66cae715f4
commit
b211c9f150
19
.github/workflows/release.yaml
vendored
19
.github/workflows/release.yaml
vendored
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user