refactor: autoconfigure github username for git creds in actions (#352) #12
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: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| smoke: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| - name: Check shell syntax | |
| run: | | |
| for file in src/*.sh src/ci/*.sh; do | |
| bash -n "$file" | |
| done | |
| - name: Shellcheck | |
| # `-x` follows the source chain from the entry points, so cross-file | |
| # variable usage is visible and needs no suppressions | |
| run: shellcheck -x -S warning src/main.sh src/setup_hooks.sh src/ci/*.sh | |
| - name: Check env.toml parsing | |
| shell: bash | |
| run: | | |
| source src/util_functions.sh && check_toml_env | |
| - name: Check download URLs | |
| run: src/ci/smoke_test.sh |