π Add STRTA automation scripts #1
Workflow file for this run
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: | |
| pull_request: | |
| jobs: | |
| shellcheck: | |
| name: Shellcheck POSIX scripts | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install ShellCheck | |
| run: sudo apt-get update && sudo apt-get install --yes shellcheck | |
| - name: Run ShellCheck | |
| run: shellcheck -S warning .husky/pre-commit .husky/pre-push script/bootstrap script/setup | |
| test: | |
| name: Validate fish and Brewfiles | |
| runs-on: macos-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install fish | |
| run: brew install fish | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| cache: npm | |
| - run: npm ci | |
| - name: Run script/test | |
| run: script/test | |
| shell: fish {0} |