v1.3.0 #1
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: Lint | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| shellcheck: | |
| name: ShellCheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Run ShellCheck on root scripts | |
| run: | | |
| shellcheck --severity=error ssc.sh generate-manifest.sh install.sh | |
| - name: Run ShellCheck on examples/ | |
| run: | | |
| find examples -name "*.sh" -print0 | xargs -0 shellcheck --severity=error | |
| syntax-check: | |
| name: Bash Syntax | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Validate Bash syntax | |
| run: | | |
| find . -name "*.sh" -not -path "./.git/*" -print0 | xargs -0 -I {} bash -n {} |