FPAD-7911: Update TxMA handler to send valid AUTH_DELETE_ACCOUNT events #1098
Workflow file for this run
This file contains hidden or 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
| name: Run Pact Tests For API Provider | |
| env: | |
| PACT_BROKER_USER: ${{ secrets.PACT_BROKER_USER }} | |
| PACT_BROKER_PASSWORD: ${{ secrets.PACT_BROKER_PASSWORD }} | |
| PACT_BROKER_URL: ${{ secrets.PACT_BROKER_URL }} | |
| PACT_BROKER_SOURCE_SECRET: ${{ secrets.PACT_BROKER_SOURCE_SECRET }} | |
| GIT_BRANCH: ${{ github.head_ref || github.ref_name }} | |
| PROVIDER_APP_VERSION: ${{ github.sha }} | |
| PUBLISH_RESULT: false | |
| on: | |
| push: | |
| paths: | |
| - src/** | |
| - package.json | |
| - package-lock.json | |
| - tsconfig.json | |
| - .node-version | |
| - .github/workflows/pact-test-api-provider.yaml | |
| branches: | |
| - main | |
| pull_request: | |
| paths: | |
| - src/** | |
| - package.json | |
| - package-lock.json | |
| - tsconfig.json | |
| - .node-version | |
| - .github/workflows/pact-test-api-provider.yaml | |
| branches: | |
| - main | |
| types: | |
| - opened | |
| - reopened | |
| - ready_for_review | |
| - synchronize | |
| workflow_dispatch: | |
| inputs: | |
| gitRef: | |
| description: 'Input branch name, commit SHA, or tag' | |
| required: true | |
| type: string | |
| default: main | |
| permissions: | |
| contents: read | |
| packages: read | |
| jobs: | |
| contract-testing: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # pin@v6.0.2 | |
| with: | |
| ref: ${{ inputs.gitRef || github.ref }} | |
| - name: Setup NodeJS | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # pin@v6.3.0 | |
| with: | |
| node-version-file: '.node-version' | |
| registry-url: 'https://npm.pkg.github.com/' | |
| scope: '@govuk-one-login' | |
| cache: npm | |
| always-auth: true | |
| - name: Run npm install | |
| run: npm ci | |
| env: | |
| NODE_AUTH_TOKEN: ${{ github.token }} | |
| - name: Set up pact publishing | |
| if: github.ref_name == 'main' | |
| run: echo "PUBLISH_RESULT=true" >> "$GITHUB_ENV" | |
| - name: Run pact tests for provider API | |
| run: | | |
| npm run connect:pact:broker | |
| npm run test:pact:provider |