Skip to content

Commit a554fd1

Browse files
committed
Shell check on CI
1 parent 75135ac commit a554fd1

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/shellcheck.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Shell check
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
shellcheck:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Shell check
13+
run: make shellcheck

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ distribution-archives: ## Generate distribution archives to be uploaded into Pyt
148148
upload-distribution-archives: ## Upload distribution archives into Python registry
149149
pdm run python -m twine upload --repository ${PYTHON_REGISTRY} dist/*
150150

151+
shellcheck: ## Run shellcheck
152+
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz" | tar -xJv \
153+
shellcheck --version
154+
shellcheck -- */*.sh
155+
151156
help: ## Show this help screen
152157
@echo 'Usage: make <OPTIONS> ... <TARGETS>'
153158
@echo ''

0 commit comments

Comments
 (0)