skill: add CI service container and AGENTS.md pitfalls #29
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] | |
| 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 |