support running doctor.sh via curl | bash #25
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 doctor.sh lib/*.sh migrations/*.sh ci/mock-op | |
| setup-ubuntu: | |
| name: Setup (Ubuntu) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install op mock for CI | |
| run: | | |
| sudo cp ci/mock-op /usr/local/bin/op | |
| sudo chmod +x /usr/local/bin/op | |
| - name: Run setup.sh | |
| run: bash setup.sh | |
| env: | |
| GH_TOKEN: ${{ secrets.TRUSTED_SHARED_SOURCE_GITHUB_TOKEN }} | |
| CIRCLECI_CLI_TOKEN: ${{ secrets.TRUSTED_SHARED_SOURCE_CIRCLECI_TOKEN }} | |
| - name: Run doctor | |
| run: | | |
| export PATH="$HOME/.local/bin:$PATH" | |
| eval "$(mise activate bash)" | |
| bash doctor.sh | |
| env: | |
| GH_TOKEN: ${{ secrets.TRUSTED_SHARED_SOURCE_GITHUB_TOKEN }} | |
| CIRCLECI_CLI_TOKEN: ${{ secrets.TRUSTED_SHARED_SOURCE_CIRCLECI_TOKEN }} |