Skip to content

Commit 8c64c66

Browse files
chore(ci): harden CI workflows (#135)
- Add job-level timeout-minutes to all workflows (15-45 min depending on job). - Add concurrency group with PR-only cancel-in-progress to benchmarks workflow. - Add version comment to autofix-ci/action SHA pin (v1.3.2). No behavioral changes: test commands, schedules, deploy targets, matrix configs, and notification settings are untouched. Co-authored-by: Sarah Gerrard <gerrardsarah@gmail.com>
1 parent de6ae63 commit 8c64c66

5 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/autofix.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
autofix:
1717
name: autofix
1818
runs-on: ubuntu-latest
19+
timeout-minutes: 20
1920
steps:
2021
- name: Checkout
2122
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -28,6 +29,6 @@ jobs:
2829
- name: Regenerate docs
2930
run: pnpm build:all && pnpm generate-docs
3031
- name: Apply fixes
31-
uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
32+
uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 # v1.3.2
3233
with:
3334
commit-message: 'ci: apply automated fixes'

.github/workflows/benchmarks.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
- 'pnpm-workspace.yaml'
1818
workflow_dispatch:
1919

20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
22+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
23+
2024
permissions:
2125
contents: read
2226

@@ -28,6 +32,7 @@ jobs:
2832
benchmarks:
2933
name: Run intent CodSpeed benchmark
3034
runs-on: ubuntu-latest
35+
timeout-minutes: 30
3136
permissions:
3237
contents: read
3338
id-token: write

.github/workflows/pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
test:
2222
name: Test
2323
runs-on: ubuntu-latest
24+
timeout-minutes: 30
2425
steps:
2526
- name: Checkout
2627
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -38,6 +39,7 @@ jobs:
3839
preview:
3940
name: Preview
4041
runs-on: ubuntu-latest
42+
timeout-minutes: 30
4143
steps:
4244
- name: Checkout
4345
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
name: Release
2121
if: "!contains(github.event.head_commit.message, 'ci: changeset release')"
2222
runs-on: ubuntu-latest
23+
timeout-minutes: 45
2324
permissions:
2425
contents: write
2526
id-token: write

.github/workflows/zizmor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
zizmor:
1313
name: Run zizmor
1414
runs-on: ubuntu-latest
15+
timeout-minutes: 10
1516
steps:
1617
- name: Checkout
1718
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

0 commit comments

Comments
 (0)