-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update publish-provider-contract readme
- Loading branch information
Showing
1 changed file
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,10 +24,21 @@ jobs: | |
steps: | ||
# MANDATORY: Must use 'checkout' first | ||
- uses: actions/checkout@v2 | ||
- uses: pactflow/actions/[email protected] | ||
- name: Publish provider contract on passing test run | ||
if: success() | ||
uses: pactflow/actions/[email protected] | ||
env: | ||
oas_file: src/oas/user.yml | ||
results_file: src/results/report.md | ||
- name: Publish provider contract on failing test run | ||
# ensure we publish results even if the tests fail | ||
if: failure() | ||
uses: pactflow/actions/[email protected] | ||
env: | ||
oas_file: src/oas/user.yml | ||
results_file: src/results/report.md | ||
# ensure we set the EXIT_CODE to ensure we upload a failing self-verification result | ||
EXIT_CODE: 1 | ||
``` | ||
## Notes | ||
|