Skip to content

Merge pull request #1073 from alphagov/PP-11791-add-new-CA-bundles #362

Merge pull request #1073 from alphagov/PP-11791-add-new-CA-bundles

Merge pull request #1073 from alphagov/PP-11791-add-new-CA-bundles #362

Workflow file for this run

name: Post Merge
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- '.github/**'
permissions:
contents: read
concurrency: webhooks-post-merge
jobs:
pr:
uses: ./.github/workflows/run-tests.yml
publish-webhooks-consumer-contract-tests:
needs: pr
runs-on: ubuntu-latest
name: Publish and tag webhooks consumer pact
steps:
- name: Git checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Set up JDK 17
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2
with:
java-version: '17'
distribution: 'adopt'
- name: Cache Maven packages
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Cache pacts directory
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: target/pacts
key: ${{ runner.os }}-build-id-${{ github.head_ref }}-${{ github.sha }}-pacts
- name: Publish and tag webhooks consumer pact
run: |
mvn pact:publish -DPACT_BROKER_URL=https://pact-broker.deploy.payments.service.gov.uk \
-DPACT_BROKER_USERNAME=${{ secrets.pact_broker_username }} \
-DPACT_BROKER_PASSWORD=${{ secrets.pact_broker_password }} -DPACT_CONSUMER_TAG=master \
-DPACT_CONSUMER_VERSION=${{ github.sha }}
ledger-provider-contract-tests:
needs: publish-webhooks-consumer-contract-tests
uses: alphagov/pay-ledger/.github/workflows/_run-pact-provider-tests.yml@master
with:
consumer: webhooks
consumer_tag: master
secrets:
pact_broker_username: ${{ secrets.pact_broker_username }}
pact_broker_password: ${{ secrets.pact_broker_password }}
tag-release:
needs:
- pr
- ledger-provider-contract-tests
permissions:
contents: write
uses: alphagov/pay-ci/.github/workflows/_create-alpha-release-tag.yml@master