-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (51 loc) · 1.93 KB
/
run-integration-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
name: Integration tests
on:
workflow_call:
inputs:
aws-region: { required: true, type: string }
stack-name: { required: true, type: string }
stack-outputs: { required: true, type: string }
secrets:
aws_role_arn: { required: true }
api-gateway-api-key: { required: true }
ipv-core-stub-basic-auth-pwd: { required: true }
ipv-core-stub-basic-auth-user: { required: true }
permissions: {}
concurrency:
group: integration-tests-${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
run-tests:
name: Integration
timeout-minutes: 15
runs-on: ubuntu-latest
environment: di-ipv-cri-dev
permissions:
id-token: write
contents: read
steps:
- name: Pull repository
uses: actions/checkout@v4
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 7.6.4
- name: Assume AWS Role
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.aws_role_arn }}
aws-region: ${{ inputs.aws-region }}
- name: Run tests
env:
ENVIRONMENT: localdev
AWS_REGION: ${{ inputs.aws-region }}
STACK_NAME: ${{ inputs.stack-name }}
API_GATEWAY_ID_PUBLIC: ${{ fromJson(inputs.stack-outputs).PublicKBVApiGatewayId }}
API_GATEWAY_ID_PRIVATE: ${{ fromJson(inputs.stack-outputs).PrivateKBVApiGatewayId }}
IPV_CORE_STUB_BASIC_AUTH_PASSWORD: ${{ secrets.ipv-core-stub-basic-auth-pwd }}
IPV_CORE_STUB_BASIC_AUTH_USER: ${{ secrets.ipv-core-stub-basic-auth-user }}
IPV_CORE_STUB_URL: https://cri.core.build.stubs.account.gov.uk
IPV_CORE_STUB_CRI_ID: kbv-cri-dev
DEFAULT_CLIENT_ID: ipv-core-stub-aws-build
APIGW_API_KEY: ${{ secrets.api-gateway-api-key }}
run: ./gradlew --no-daemon integration-tests:cucumber