Skip to content

skill: add CI service container and AGENTS.md pitfalls #29

skill: add CI service container and AGENTS.md pitfalls

skill: add CI service container and AGENTS.md pitfalls #29

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup
run: |
chmod +x cli/bin/auto-pr
chmod +x cli/tests/*.sh
- name: Check bash syntax
run: |
for f in cli/bin/* cli/src/*.sh cli/tests/*.sh; do
bash -n "$f"
done
- name: Run tests
run: |
./cli/tests/test_init.sh ./cli/bin/auto-pr
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install shellcheck
run: sudo apt-get install -y shellcheck
- name: Run shellcheck
run: |
# SC1091: Not following sourced files (info only, paths are relative to script location)
# SC2034: Variable appears unused (false positive for indirect array references)
# SC2120/SC2119: Function references arguments but none passed (designed for optional args)
find . -name "*.sh" -exec shellcheck --exclude=SC1091,SC2034,SC2120,SC2119 {} \;
shellcheck --exclude=SC1091,SC2034,SC2120,SC2119 cli/bin/auto-pr