Skip to content

Commit fe3beae

Browse files
andy5995claude
andcommitted
fix: use SCRIPTDIR so shellcheck can find COMMON on CI
SHELLCHECK_OPTS used $GITHUB_WORKSPACE which GitHub Actions does not expand in env: blocks. SCRIPTDIR is shellcheck's built-in token that resolves to the directory of the script being checked, so shellcheck can find COMMON alongside each test script without a hardcoded path. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5e828f6 commit fe3beae

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.github/workflows/shellcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
- name: Run ShellCheck
2222
uses: ludeeus/action-shellcheck@master
2323
env:
24-
SHELLCHECK_OPTS: -x -P $GITHUB_WORKSPACE/test
24+
SHELLCHECK_OPTS: -x -P SCRIPTDIR

test/test_basic.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,3 @@ cmp_substr "$output" "Skipping"
125125

126126
echo "Basic tests passed"
127127
exit 0
128-

0 commit comments

Comments
 (0)