Skip to content

Commit ccf8899

Browse files
committed
ci: shellsheck checks
1 parent b2ac115 commit ccf8899

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/shellcheck.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Shellcheck
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
jobs:
7+
shellcheck:
8+
name: Shellcheck
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Run ShellCheck
13+
uses: ludeeus/[email protected]
14+
env:
15+
SHELLCHECK_OPTS: -x # allow outside sources

ci/run_task.sh

+6
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ main() {
5858

5959
if [ -e "$crates_script" ]; then
6060
verbose_say "Sourcing $crates_script"
61+
# can't find the file because of the ENV var
62+
# shellcheck source=/dev/null
6163
. "$crates_script"
6264
for crate in "${CRATES[@]}"; do
6365
verbose_say "Found crate: $crate"
@@ -120,6 +122,8 @@ build_and_test() {
120122
verbose_say "Sourcing $test_vars_script"
121123
if [ -e "$test_vars_script" ]; then
122124
# Set crate specific variables.
125+
# can't find the file because of the ENV var
126+
# shellcheck source=/dev/null
123127
. "$test_vars_script"
124128
else
125129
err "Missing $test_vars_script"
@@ -240,6 +244,8 @@ do_dup_deps() {
240244
# Add any duplicate dependencies to ignore.
241245
if [ -e "$duplicate_deps_script" ]; then
242246
verbose_say "Sourcing $duplicate_deps_script"
247+
# can't find the file because of the ENV var
248+
# shellcheck source=/dev/null
243249
. "$duplicate_deps_script"
244250

245251
if [ -n "${DUPLICATE_DEPS+x}" ]; then

0 commit comments

Comments
 (0)