Skip to content

Commit e18318d

Browse files
0xLeifClaudeclaude
authored
Update: standardize GitHub Actions (path filters, concurrency, runners) (#13)
Co-authored-by: Claude <claude.condone765@passmail.net> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 346c4e5 commit e18318d

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,29 @@ name: CI
33
on:
44
push:
55
branches: [main]
6+
paths:
7+
- bin/**
8+
- .github/workflows/ci.yml
69
pull_request:
710
branches: [main]
11+
paths:
12+
- bin/**
13+
- .github/workflows/ci.yml
814

915
permissions:
1016
contents: read
1117

18+
concurrency:
19+
group: ci-${{ github.ref }}
20+
cancel-in-progress: true
21+
1222
jobs:
1323
shellcheck:
1424
name: ShellCheck
1525
runs-on: ubuntu-latest
26+
timeout-minutes: 10
1627
steps:
17-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@v5
1829
- name: Run shellcheck
1930
run: |
2031
shopt -s nullglob
@@ -30,8 +41,9 @@ jobs:
3041
syntax:
3142
name: Bash syntax check
3243
runs-on: ubuntu-latest
44+
timeout-minutes: 10
3345
steps:
34-
- uses: actions/checkout@v4
46+
- uses: actions/checkout@v5
3547
- name: Check bash -n on all scripts
3648
run: |
3749
shopt -s nullglob
@@ -47,8 +59,9 @@ jobs:
4759
smoke:
4860
name: Smoke (--help)
4961
runs-on: ubuntu-latest
62+
timeout-minutes: 10
5063
steps:
51-
- uses: actions/checkout@v4
64+
- uses: actions/checkout@v5
5265
- name: Run --help on every bin entry
5366
run: |
5467
shopt -s nullglob

‎.github/workflows/pages.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ jobs:
1717
name: github-pages
1818
url: ${{ steps.deployment.outputs.page_url }}
1919
runs-on: ubuntu-latest
20+
timeout-minutes: 10
2021
steps:
21-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2223
- uses: actions/configure-pages@v5
2324
- uses: actions/upload-pages-artifact@v3
2425
with:

0 commit comments

Comments
 (0)