feat: add time limit to wait for results #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR | |
on: | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.event.number || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
uses: ./.github/workflows/lint.yaml | |
secrets: inherit | |
test: | |
uses: ./.github/workflows/test.yaml | |
secrets: inherit | |
build-docs: | |
uses: ./.github/workflows/build-docs.yaml | |
secrets: inherit | |
passed: | |
needs: | |
- lint | |
- test | |
- build-docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check lint status | |
if: ${{ needs.lint.result != 'success' }} | |
run: exit 1 | |
- name: Check test status | |
if: ${{ needs.test.result != 'success' }} | |
run: exit 1 | |
- name: Check build docs status | |
if: ${{ needs.build-docs.result != 'success' }} | |
run: exit 1 |