Skip to content

Reusable workflow

Reusable workflow #1

Workflow file for this run

name: PR
on:
pull_request:
permissions:
contents: read
jobs:
tests:
uses: ./.github/workflows/_run-node-tests.yml

Check failure on line 11 in .github/workflows/pr.yml

View workflow run for this annotation

GitHub Actions / PR

Invalid workflow file

The workflow is not valid. In .github/workflows/pr.yml (Line: 11, Col: 11): Error from called workflow alphagov/pay-selfservice/.github/workflows/_run-node-tests.yml@c4ecfbe944b1584ea22b581f63a58176e582d646 (Line: 192, Col: 30): Unrecognized named-value: 'consumer_tag'. Located at position 1 within expression: consumer_tag
with:
consumer_tag: ${{ github.event.pull_request.number }}
publish_pacts: false
run_cypress_tests: true
secrets:
pact_broker_username: ${{ secrets.pact_broker_username }}
pact_broker_password: ${{ secrets.pact_broker_password }}
pact-providers-contract-tests:
name: "Provider tests"
needs: tests
uses: alphagov/pay-ci/.github/workflows/_run-provider-pact-tests-for-consumer.yml@pp_12590_reusable_workflows
strategy:
matrix:
provider: [ 'adminusers', 'connector', 'ledger', 'products' ]
with:
consumer: selfservice
consumer_tag: ${{ github.event.pull_request.number }}
provider: ${{ matrix.provider }}
secrets:
pact_broker_username: ${{ secrets.pact_broker_username }}
pact_broker_password: ${{ secrets.pact_broker_password }}