Skip to content

Create reusable workflows to run NodeJS tests #3

Create reusable workflows to run NodeJS tests

Create reusable workflows to run NodeJS tests #3

Workflow file for this run

name: PR
on:
workflow_call:
permissions:
contents: read
jobs:
detect-secrets:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
- name: Detect secrets
uses: alphagov/pay-ci/actions/detect-secrets@master
install-and-compile:
uses: ./.github/workflows/_run-node-install_and_compile.yml@pp_12588_pact_tests_on_prs

Check failure on line 19 in .github/workflows/_run-tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/_run-tests.yml

Invalid workflow file

invalid value workflow reference: cannot specify version when calling local workflows
with:
has_cypress_tests: true
tests:
needs: [ install-and-compile ]
uses: ./.github/workflows/_run-node-unit-tests-and-publish-pacts.yml@pp_12588_pact_tests_on_prs
with:
publish_pacts: true
secrets:
pact_broker_username: ${{ secrets.pact_broker_username }}
pact_broker_password: ${{ secrets.pact_broker_password }}
cypress-tests:
needs: [ install-and-compile ]
uses: ./.github/workflows/_run-node-cypress-tests.yml@pp_12588_pact_tests_on_prs
pact-providers-contract-tests:
name: "Provider tests"
needs: tests
uses: alphagov/pay-ci/.github/workflows/_run-provider-pact-tests-for-consumer.yml@master
strategy:
matrix:
provider: [ 'adminusers', 'connector', 'ledger', 'products' ]
with:
consumer: "selfservice"
provider: ${{ matrix.provider }}
secrets:
pact_broker_username: ${{ secrets.pact_broker_username }}
pact_broker_password: ${{ secrets.pact_broker_password }}
check-docker-base-images-are-manifests:
uses: alphagov/pay-ci/.github/workflows/_validate_docker_image_is_manifest.yml@master