-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.13 KB
/
Copy pathci-shellcheck.yml
File metadata and controls
50 lines (42 loc) · 1.13 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
name: Shell Lint (shellcheck)
on:
push:
branches: [master, main]
paths:
- "**/*.sh"
- "**/*.sh.tmpl"
- ".shellcheckrc"
- "scripts/lint-shell.sh"
- ".github/workflows/ci-shellcheck.yml"
pull_request:
branches: [master, main]
paths:
- "**/*.sh"
- "**/*.sh.tmpl"
- ".shellcheckrc"
- "scripts/lint-shell.sh"
- ".github/workflows/ci-shellcheck.yml"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Install shellcheck
run: sudo apt-get update && sudo apt-get install -y shellcheck
- name: Install chezmoi
uses: ./.github/actions/install-chezmoi
with:
install-dir: "$HOME/.local/bin"
add-to-path: "true"
- name: Run shellcheck
run: ./scripts/lint-shell.sh