Repository navigation
68 lines (58 loc) · 1.75 KB
/
Copy pathci.yml
File metadata and controls
68 lines (58 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CI
on:
pull_request:
paths-ignore:
- '**.md'
- '.github/skills/**'
- '.github/agents/**'
push:
branches:
- main
paths-ignore:
- '**.md'
- '.github/skills/**'
- '.github/agents/**'
permissions:
contents: read
jobs:
shellcheck:
name: ShellCheck bash scripts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 1
- name: Run ShellCheck on all .sh scripts
run: |
set -euo pipefail
# severity=warning: fail on real bugs, not pre-existing style/info nits (SC2086, SC2317)
find . -type f -name '*.sh' -print0 | xargs -0 shellcheck --severity=warning
self-update-drift:
name: Self-update block drift check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 1
- name: Compare each script's self-update block with the template
run: .github/scripts/check-self-update.sh
self-update-test:
name: Gated self-update behaviour
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 1
- name: Run updater tests against a stubbed curl
run: .github/scripts/test-self-update.sh
actionlint:
name: Lint workflows
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 1
- name: Run actionlint
run: |
go install github.com/rhysd/actionlint/cmd/actionlint@v1.7.7
"$(go env GOPATH)/bin/actionlint"