Skip to content

Commit 92ee337

Browse files
committed
ci: add a shellcheck workflow
This initializes the CI for this repo Signed-off-by: Michael Adam <obnox@samba.org>
1 parent a66e229 commit 92ee337

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/shellcheck.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: ShellCheck
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
branches:
7+
- main
8+
- release-*
9+
pull_request:
10+
branches:
11+
- main
12+
- release-*
13+
14+
# cancel the in-progress workflow when PR is refreshed.
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
17+
cancel-in-progress: true
18+
19+
permissions:
20+
contents: read
21+
22+
jobs:
23+
shellcheck:
24+
name: Shellcheck
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28+
- name: install shellcheck
29+
run: |
30+
sudo apt-get update
31+
sudo apt-get install -y shellcheck
32+
- name: Run ShellCheck
33+
run: make shellcheck

0 commit comments

Comments
 (0)