Skip to content

Commit 1ce9e36

Browse files
committed
ci: add job for shfmt and shellcheck linting
1 parent 4e94b20 commit 1ce9e36

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,27 @@ jobs:
3636
- name: ${{ matrix.name }}
3737
run: ${{ matrix.command }}
3838

39+
ci-shell:
40+
runs-on: ubuntu-24.04
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
include:
45+
- task: shfmt
46+
name: "Run shfmt"
47+
command: "shfmt -d ."
48+
- task: shellcheck
49+
name: "Run shellcheck"
50+
command: "shellcheck **/*.sh"
51+
name: Run ${{ matrix.task }}
52+
steps:
53+
- name: Checkout the repository
54+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
55+
- name: Setup tools
56+
uses: jdx/mise-action@13abe502c30c1559a5c37dff303831bab82c9402 # v2.2.3
57+
- name: ${{ matrix.name }}
58+
run: ${{ matrix.command }}
59+
3960
build:
4061
runs-on: ubuntu-24.04
4162
strategy:

0 commit comments

Comments
 (0)