v0.6.2: repo view takes positional OWNER/NAME, repo file handles directories #17
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| 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" | |
| syntax: | |
| name: Bash syntax check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check bash -n on all scripts | |
| run: | | |
| shopt -s nullglob | |
| fail=0 | |
| for f in bin/*; do | |
| if head -n1 "$f" | grep -qE '^#!.*\bbash\b'; then | |
| echo "▶ bash -n $f" | |
| bash -n "$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 |