-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.29 KB
/
verify-pact.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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/