generated from hmcts/service-hmcts-crime-springboot-template
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (34 loc) · 1.02 KB
/
publish-pact-verification.yml
File metadata and controls
43 lines (34 loc) · 1.02 KB
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
name: Run pact provider test and publish verification report to pact broker
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
publish-provider-pacts:
runs-on: ubuntu-latest
env:
PACT_BROKER_URL: https://hmcts-dts.pactflow.io
PACT_BROKER_HOST: hmcts-dts.pactflow.io
PACT_BROKER_TOKEN: ${{ secrets.PACT_BROKER_TOKEN }}
PACT_VERIFIER_PUBLISH_RESULTS: true
GIT_COMMIT: ${{ github.sha }}
GIT_BRANCH: ${{ github.ref_name }}
PACT_ENV: dev/pactTest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 21
- name: Install Pact CLI
run: npm install -g @pact-foundation/pact-cli
- name: Make provider script executable
run: chmod +x publish-pacts.sh
- name: Run Pact verification Test and publish verification report
run: ./publish-pacts.sh