Skip to content

Commit 9fe9906

Browse files
ci: Add shellcheck workflow for code quality checks
1 parent 8010bf5 commit 9fe9906

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/shellcheck.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
name: shellcheck
3+
4+
run-name: Shellcheck
5+
6+
on:
7+
pull_request:
8+
branches:
9+
- "main"
10+
paths:
11+
- "**/*.sh"
12+
13+
concurrency:
14+
group: ${{ github.ref }}-${{ github.workflow }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
skip_duplicate_actions:
19+
name: Skip Duplicate Actions
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: fkirc/skip-duplicate-actions@master
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
cancel_others: true
26+
concurrent_skipping: never
27+
28+
revive:
29+
name: Shellcheck
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout code
33+
uses: actions/checkout@v4
34+
with:
35+
fetch-depth: 0
36+
37+
- name: Call Dagger Function
38+
uses: dagger/dagger-for-github@v6
39+
with:
40+
args: check --source=. stdout
41+
module: github.com/softwaredevelop/daggerverse/shellcheck@main
42+
verb: call
43+
version: "latest"

0 commit comments

Comments
 (0)