Skip to content

Commit 9afe24a

Browse files
committed
check all bash scripts on CI by shellcheck
1 parent 9c36f48 commit 9afe24a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install dependencies on Linux
2323
run: |
2424
set -x
25-
sudo apt install shellcheck
25+
sudo apt-get install -y shellcheck
2626
pip install pyflakes
2727
shellcheck --version
2828
pyflakes --version
@@ -90,6 +90,7 @@ jobs:
9090
- uses: actions/setup-go@v5
9191
with:
9292
go-version: '1.22'
93+
- run: sudo apt-get install -y shellcheck
9394
- name: Check Go sources are formatted
9495
run: |
9596
diffs="$(gofmt -d ./*.go ./cmd/actionlint/*.go ./scripts/*/*.go ./playground/*.go)"
@@ -103,7 +104,7 @@ jobs:
103104
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
104105
- run: make lint SKIP_GO_GENERATE=true
105106
- name: Lint bash scripts
106-
run: shellcheck ./scripts/download-actionlint.bash ./playground/post-install.bash ./playground/deploy.bash
107+
run: shellcheck ./scripts/*.bash ./playground/*.bash
107108
docker:
108109
name: Dockerfile
109110
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)