Commit 2cab09d
committed
Add CI workflow with shellcheck, bash -n, and bats gates
GitHub Actions workflow on pull_request and push to main / dev with two jobs:
- lint: runs shellcheck at warning severity and bash -n on every .sh file in the repo
- bats: installs bats jq curl python3 and runs the test suite
Pinned ubuntu-24.04 runner. actions/checkout pinned to commit SHA 34e114876b0b11c390a56381ad16ebd13914f8d5 (v4.3.1) for supply-chain hygiene; persist-credentials false drops the GITHUB_TOKEN from local git after checkout. permissions: contents read at workflow level. 10-minute timeout per job.
Verified locally by replicating the workflow steps inside a clean docker run --rm ubuntu:24.04 container; all 25 bats tests pass and shellcheck reports zero warnings.1 parent 8a5a30e commit 2cab09d
1 file changed
Lines changed: 53 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
0 commit comments