-
Notifications
You must be signed in to change notification settings - Fork 7
60 lines (52 loc) · 1.75 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
52
53
54
55
56
57
58
59
name: Github Actions Tests
on:
workflow_call:
secrets:
pact_broker_username:
required: true
pact_broker_password:
required: true
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
integration-tests:
name: "Integration tests and publish pacts"
uses: alphagov/pay-ci/.github/workflows/_run-java-tests-and-publish-pacts.yml@master
with:
publish_pacts: true
java_version: "21"
secrets:
pact_broker_username: ${{ secrets.pact_broker_username }}
pact_broker_password: ${{ secrets.pact_broker_password }}
pact-providers-contract-tests:
name: "Provider tests"
needs: integration-tests
uses: alphagov/pay-ci/.github/workflows/_run-provider-pact-tests-for-consumer.yml@master
strategy:
matrix:
provider: [ 'ledger', 'connector' ]
with:
consumer: adminusers
provider: ${{ matrix.provider }}
java_version: "21"
secrets:
pact_broker_username: ${{ secrets.pact_broker_username }}
pact_broker_password: ${{ secrets.pact_broker_password }}
provider-contract-tests:
needs: integration-tests
name: "App as provider tests"
uses: alphagov/pay-ci/.github/workflows/_run-app-as-provider-contract-tests.yml@master
secrets:
pact_broker_username: ${{ secrets.pact_broker_username }}
pact_broker_password: ${{ secrets.pact_broker_password }}
with:
java_version: "21"
check-docker-base-images-are-manifests:
uses: alphagov/pay-ci/.github/workflows/_validate_docker_image_is_manifest.yml@master