ci: make the PR-related jobs fail afer 5 minutes #488
Workflow file for this run
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: 🧹 Pull request | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
syntax_changelog: | |
name: Syntax & changelog | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
- name: Install | |
run: node common/scripts/install-run-rush.js install | |
- name: 🏗 Build | |
run: node common/scripts/install-run-rush.js rebuild | |
- name: 📝 Verify missing changelogs | |
run: node common/scripts/install-run-rush.js change --target-branch origin/$GITHUB_BASE_REF --verify -v | |
- name: 💅 Lint | |
# --verbose allows to display warnings from ESLint | |
run: node common/scripts/install-run-rush.js lint --verbose | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
matrix: | |
node_version: [18, 19, 20] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node_version }} | |
- name: Install | |
run: node common/scripts/install-run-rush.js install | |
- name: 🏗 Build | |
run: node common/scripts/install-run-rush.js rebuild | |
- name: 🐛 Test | |
run: node common/scripts/install-run-rush.js test |