Skip to content

Commit

Permalink
Configure CI to run Pact tests with Support API
Browse files Browse the repository at this point in the history
The GitHub action has been configured in the provider (support-api)
and can now be called as part of CI to verify the provider contract
when the consumer builds.
  • Loading branch information
deborahchua committed Jun 6, 2024
1 parent 6f3bfbe commit c91e611
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ jobs:
with:
pact_artifact: pacts

support_api_pact:
needs: generate_pacts
uses: alphagov/support-api/.github/workflows/pact-verify.yml@main
with:
pact_artifact: pacts

publish_pacts:
if: ${{ github.actor != 'dependabot[bot]' }}
needs:
Expand All @@ -123,6 +129,7 @@ jobs:
- link_checker_api_pact
- locations_api_pact
- publishing_api_pact
- support_api_pact
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit c91e611

Please sign in to comment.