chore: README quick start #5
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: | |
| name: Test on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Ensure scripts are executable | |
| run: | | |
| find . -type f -name "*.sh" -exec chmod +x {} \; | |
| - name: Syntax check shell scripts | |
| run: | | |
| set -e | |
| while IFS= read -r script; do | |
| bash -n "$script" | |
| done < <(find . -type f -name "*.sh") | |
| - name: Run full test suite | |
| run: ./run-tests.sh |