forked from heavy-duty/rig
The runner-* commands source commands/lib/runner-config.sh. Without -x, shellcheck will not follow that source even though the files carry a `source=SCRIPTDIR/...` directive, so it reported SC1091 on all three — and shellcheck exits non-zero on any finding, info-level included. commands/*.sh does not glob into lib/, so runner-config.sh was being linted by nothing at all. List it explicitly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
16 lines
465 B
YAML
16 lines
465 B
YAML
name: ci
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: shellcheck
|
|
# -x follows the `source=SCRIPTDIR/...` directives into commands/lib/.
|
|
# commands/*.sh does not glob into lib/, so list it explicitly.
|
|
run: shellcheck -x install.sh bin/rig commands/*.sh commands/lib/*.sh test/cli.sh
|
|
- name: cli tests
|
|
run: bash test/cli.sh
|