Skip to content

Commit af17618

Browse files
committed
Add CI workflow to lint shell scripts
Although currently very simple, the action setup script is essential to the proper funtioning of the action, so worthy of some CI.
1 parent 6ffb86d commit af17618

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/lint-shell.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Lint shell scripts
2+
3+
on:
4+
push:
5+
paths:
6+
- '.github/workflows/lint-shell.yml'
7+
- '**.sh'
8+
pull_request:
9+
paths:
10+
- '.github/workflows/lint-shell.yml'
11+
- '**.sh'
12+
13+
jobs:
14+
lint:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
# Recursively lint all shell scripts in the repository
22+
# See: https://github.com/azohra/shell-linter/blob/latest/README.md
23+
- name: ShellCheck
24+
uses: azohra/shell-linter@latest

action-setup.sh

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ sudo apt-get install --yes python${PYTHON_PACKAGE_VERSION}-venv > /dev/null
3232
"$PYTHON_COMMAND" -m venv "$PYTHON_VENV_PATH"
3333

3434
# Activate Python virtual environment
35+
# shellcheck source=/dev/null
3536
. "$PYTHON_VENV_ACTIVATE_SCRIPT_PATH"
3637

3738
# Install Python dependencies

0 commit comments

Comments
 (0)