Skip to content

Commit

Permalink
update workflow to get a single job for summary and guard (#271)
Browse files Browse the repository at this point in the history
add a summary job for test workflow so presubmit can guard against that
rather than for every variant

when we dropped 1.0.* - 1.3.* and replaced it with 1.8.* - 1.10.*, the
required presubmit check was not updated, causing all subsequent prs to
be blocked

https://github.com/chainguard-dev/terraform-provider-cosign/pull/268/files

Signed-off-by: Kenny Leung <[email protected]>
  • Loading branch information
k4leung4 authored Jan 10, 2025
1 parent 8e10052 commit 1b99675
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,25 @@ jobs:
- run: go build -v .

- run: TF_ACC=1 go test -v -cover ./internal/provider/

check:
permissions:
actions: read
needs:
- test
runs-on: ubuntu-latest
if: always() # always run as required and if any dependent job is skipped, this is skipped if not always
steps:
- uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit

- uses: technote-space/workflow-conclusion-action@45ce8e0eb155657ab8ccf346ade734257fd196a5 # v3.0.3

- if: ${{ env.WORKFLOW_CONCLUSION == 'success' }}
working-directory: /tmp
run: echo ${{ env.WORKFLOW_CONCLUSION }} && exit 0

- if: ${{ env.WORKFLOW_CONCLUSION == 'failure' }}
working-directory: /tmp
run: echo ${{ env.WORKFLOW_CONCLUSION }} && exit 1

0 comments on commit 1b99675

Please sign in to comment.