Skip to content

contract_requiring_verification_published #210

contract_requiring_verification_published

contract_requiring_verification_published #210

Workflow file for this run

name: Verify Pact
on:
repository_dispatch:
types:
- contract_requiring_verification_published
jobs:
test:
runs-on: ubuntu-latest
environment: pact
defaults:
run:
working-directory: ftgo/
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: .github
- uses: ./.github/actions/setup
with:
ref: ${{ env.GIT_COMMIT }}
- name: Execute Gradle test
run: ./gradlew test
env:
PACT_BROKER_PUBLISH_VERIFICATION_RESULTS: true
PACT_BROKER_BASE_URL: ${{ vars.PACT_BROKER_URL }}
PACTBROKER_AUTH_USERNAME: ${{ vars.PACT_BROKER_USERNAME }}
PACTBROKER_AUTH_PASSWORD: ${{ secrets.PACT_BROKER_PASSWORD }}
PACT_URL: ${{ github.event.client_payload.pact_url }}
GIT_COMMIT: ${{ github.event.client_payload.sha }}
GIT_BRANCH: ${{ github.event.client_payload.branch }}
DESCRIPTION: ${{ github.event.client_payload.message }}
- uses: actions/upload-artifact@v3
with:
name: Package
path: build/libs
- name: Store reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: reports
path: |
**/build/reports/
**/build/test-results/