-
Notifications
You must be signed in to change notification settings - Fork 3
126 lines (124 loc) · 3.55 KB
/
stage-4-acceptance.yaml
File metadata and controls
126 lines (124 loc) · 3.55 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
name: "Acceptance stage"
on:
workflow_call:
secrets:
APP_PEM_FILE:
required: true
APP_CLIENT_ID:
required: true
inputs:
target_release_version:
description: "Version of the software, set by the CI/CD pipeline workflow"
required: false
type: string
target_environment:
description: "Environment being tested"
required: true
type: string
target_account_group:
description: "Account for the environment being tested"
required: true
type: string
jobs:
test-contract:
name: "Contract test"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: "Checkout code"
uses: actions/checkout@v5
- name: "Run contract test"
run: |
make test-contract
- name: "Save result"
run: |
echo "Nothing to save"
test-security:
name: "Security test"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: "Checkout code"
uses: actions/checkout@v5
- name: "Run security test"
run: |
make test-security
- name: "Save result"
run: |
echo "Nothing to save"
test-ui:
name: "UI test"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: "Checkout code"
uses: actions/checkout@v5
- name: "Run UI test"
run: |
make test-ui
- name: "Save result"
run: |
echo "Nothing to save"
test-ui-performance:
name: "UI performance test"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: "Checkout code"
uses: actions/checkout@v5
- name: "Run UI performance test"
run: |
make test-ui-performance
- name: "Save result"
run: |
echo "Nothing to save"
test-integration:
name: "Integration test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5.0.0
# Calls out to the nhs-notify-internal repo.
# The nhs-notify-internal repo will run the tests
# setup in ./.github/actions/acceptance-tests/action.yaml
- name: Trigger Acceptance Tests
shell: bash
env:
APP_PEM_FILE: ${{ secrets.APP_PEM_FILE }}
APP_CLIENT_ID: ${{ secrets.APP_CLIENT_ID }}
TARGET_ENVIRONMENT: ${{ inputs.target_environment }}
TARGET_ACCOUNT_GROUP: ${{ inputs.target_account_group }}
run: |
.github/scripts/dispatch_internal_repo_workflow.sh \
--infraRepoName "nhs-notify-digital-letters" \
--overrideProjectName "nhs" \
--releaseVersion "${{ inputs.target_release_version || github.head_ref || github.ref_name }}" \
--targetWorkflow "dispatch-contextual-tests-dynamic-env.yaml" \
--targetEnvironment "$TARGET_ENVIRONMENT" \
--targetAccountGroup "$TARGET_ACCOUNT_GROUP" \
--targetComponent "dl"
test-accessibility:
name: "Accessibility test"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: "Checkout code"
uses: actions/checkout@v5
- name: "Run accessibility test"
run: |
make test-accessibility
- name: "Save result"
run: |
echo "Nothing to save"
test-load:
name: "Load test"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: "Checkout code"
uses: actions/checkout@v5
- name: "Run load tests"
run: |
make test-load
- name: "Save result"
run: |
echo "Nothing to save"