-
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.
Merge pull request #45 from jdongelmans/add-oas-file-content-type
fix #43: Support setting the OAS content type in publish provider contract action
- Loading branch information
Showing
3 changed files
with
9 additions
and
3 deletions.
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 |
---|---|---|
|
@@ -30,6 +30,7 @@ jobs: | |
uses: pactflow/actions/[email protected] | ||
env: | ||
oas_file: src/oas/user.yml | ||
oas_file_content_type: application/yml # optional, defaults to application/yaml | ||
results_file: src/results/report.md | ||
- name: Publish provider contract on failing test run | ||
# ensure we publish results even if the tests fail | ||
|
@@ -44,6 +45,6 @@ jobs: | |
## Notes | ||
- If you change your `application_name` you willl need to inform your consumers (their pact tests rely on the name you use here). | ||
- Assumes 'success = true' (you can control this action by depending on an earliler successful test job). | ||
- If you change your `application_name` you will need to inform your consumers (their pact tests rely on the name you use here). | ||
- Assumes 'success = true' (you can control this action by depending on an earlier successful test job). | ||
- You must ensure `additionalProperties` in your OAS is set to `false` on any response body, to ensure a consumer won't get false positives if they add a new field that isn't actually part of the spec. |
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
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