Merge pull request #813 from humblezdan/feat/wire-audit-middleware #456
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: Pact Provider Verification | |
| on: | |
| push: | |
| branches: [ main, test/webhook-pact-provider, test/pact-provider-verification ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| pact-provider: | |
| name: Verify Webhook Pact | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Download dependencies | |
| run: go mod download | |
| - name: Run Pact provider verification | |
| env: | |
| WEBHOOK_SECRET: test-webhook-secret-for-pact | |
| GIN_MODE: test | |
| PACT_BROKER_URL: ${{ secrets.PACT_BROKER_URL }} | |
| PACT_BROKER_TOKEN: ${{ secrets.PACT_BROKER_TOKEN }} | |
| GIT_COMMIT: ${{ github.sha }} | |
| run: go test ./tests/pact/... -v -timeout 120s | |
| - name: Run full test suite | |
| env: | |
| WEBHOOK_SECRET: test-webhook-secret-for-pact | |
| GIN_MODE: test | |
| run: go test ./... -timeout 120s |