Skip to content

Commit 615793e

Browse files
Require shellcheck to pass before running tests
1 parent f782157 commit 615793e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
# Unit tests + coverage
112112
unit_tests:
113113
runs-on: ubuntu-22.04
114-
needs: [build]
114+
needs: [build, shellcheck]
115115
defaults:
116116
run:
117117
working-directory: react

.github/workflows/release-ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,18 @@ permissions:
1818
contents: write
1919

2020
jobs:
21+
# Shell script linting
22+
shellcheck:
23+
runs-on: ubuntu-22.04
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Run ShellCheck
27+
run: shellcheck -s sh server/*.sh
28+
2129
# Run tests
2230
test:
2331
runs-on: ubuntu-22.04
32+
needs: [shellcheck]
2433
defaults:
2534
run:
2635
working-directory: react

0 commit comments

Comments
 (0)