Also clone trusted/docs to ~/Work #4
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: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| jobs: | |
| shellcheck: | |
| name: Shellcheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run shellcheck | |
| run: shellcheck -x setup.sh lib/migrate.sh | |
| setup-ubuntu: | |
| name: Setup (Ubuntu) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run setup.sh | |
| run: bash setup.sh | |
| env: | |
| CI: "true" | |
| GH_TOKEN: ${{ github.token }} | |
| - name: Install bats | |
| run: sudo apt-get install -y -qq bats | |
| - name: Run post-setup tests | |
| run: | | |
| export PATH="$HOME/.local/bin:$PATH" | |
| eval "$(mise activate bash)" | |
| bats test/setup_test.bats |