Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
shellcheck:
name: ShellCheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run shellcheck
run: |
shopt -s nullglob
fail=0
for f in bin/*; do
if head -n1 "$f" | grep -qE '^#!.*\b(bash|sh)\b'; then
echo "▶ shellcheck $f"
shellcheck --severity=warning "$f" || fail=1
fi
done
exit "$fail"

smoke:
name: Smoke (--help)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run --help on every bin entry
run: |
shopt -s nullglob
for f in bin/*; do
if head -n1 "$f" | grep -qE '^#!.*\b(bash|sh)\b'; then
chmod +x "$f"
echo "▶ $f --help"
"$f" --help || exit 1
echo
fi
done
Loading