From 7158db2f6a7afeaa307a2c725306a16610e4b5ab Mon Sep 17 00:00:00 2001 From: D Chua Date: Thu, 6 Jun 2024 16:43:40 +0100 Subject: [PATCH] Configure CI to run Pact tests with Support API 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. --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9555af08..bd4ce5b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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