Skip to content

Commit

Permalink
check all bash scripts on CI by shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Mar 21, 2024
1 parent 9c36f48 commit 9afe24a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Install dependencies on Linux
run: |
set -x
sudo apt install shellcheck
sudo apt-get install -y shellcheck
pip install pyflakes
shellcheck --version
pyflakes --version
Expand Down Expand Up @@ -90,6 +90,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- run: sudo apt-get install -y shellcheck
- name: Check Go sources are formatted
run: |
diffs="$(gofmt -d ./*.go ./cmd/actionlint/*.go ./scripts/*/*.go ./playground/*.go)"
Expand All @@ -103,7 +104,7 @@ jobs:
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
- run: make lint SKIP_GO_GENERATE=true
- name: Lint bash scripts
run: shellcheck ./scripts/download-actionlint.bash ./playground/post-install.bash ./playground/deploy.bash
run: shellcheck ./scripts/*.bash ./playground/*.bash
docker:
name: Dockerfile
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9afe24a

Please sign in to comment.