Move commands to separate modules #147
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: Prober Unit Test | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'tools/prober/cmd/prober/**' | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'tools/prober/cmd/prober/**' | |
| permissions: | |
| contents: read | |
| jobs: | |
| prober-test: | |
| name: 'Prober test (${{ matrix.env }})' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - env: prod | |
| args: "" | |
| - env: staging | |
| args: "--staging" | |
| steps: | |
| - name: 'Checkout' | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Go | |
| uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | |
| with: | |
| go-version-file: './tools/prober/go.mod' | |
| check-latest: true | |
| - name: Build prober test | |
| run: go build ./tools/prober/cmd/prober | |
| - name: Get test OIDC token | |
| uses: sigstore-conformance/extremely-dangerous-public-oidc-beacon@main | |
| - name: Export OIDC token | |
| run: | | |
| echo "SIGSTORE_ID_TOKEN=$(cat ./oidc-token.txt)" >> $GITHUB_ENV | |
| - name: Run prober test | |
| id: prober-test | |
| run: ./prober --one-time --write-prober --logStyle dev ${{ matrix.args }} |