docs: Phase 6 β CONTRIBUTING.md, pre-commit config, SECURITY.md, updaβ¦ #10
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: | |
| shellcheck: | |
| name: ShellCheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install ShellCheck | |
| run: sudo apt-get install -y shellcheck | |
| - name: Run ShellCheck on all scripts | |
| run: | | |
| find scripts -name "*.sh" | xargs shellcheck --severity=warning | |
| bats: | |
| name: BATS Tests (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install BATS (Ubuntu) | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get install -y bats | |
| # bats-support and bats-assert are bundled in tests/test_helper/ | |
| - name: Install BATS (macOS) | |
| if: runner.os == 'macOS' | |
| run: brew install bats-core | |
| - name: Run BATS test suite | |
| run: | | |
| find tests -name '*.bats' -not -path '*/test_helper/*' | sort | xargs bats |