-
Notifications
You must be signed in to change notification settings - Fork 15
51 lines (43 loc) · 1.51 KB
/
_run-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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
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