-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yaml
More file actions
53 lines (43 loc) · 1.3 KB
/
action.yaml
File metadata and controls
53 lines (43 loc) · 1.3 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
name: Acceptance tests
description: "Run acceptance tests for this repo"
inputs:
testType:
description: Type of test to run
required: true
targetEnvironment:
description: Name of the environment under test
required: true
targetAccountGroup:
description: Name of the account group under test
default: nhs-notify-client-callbacks-dev
required: true
targetComponent:
description: Name of the component under test
required: true
runs:
using: "composite"
steps:
- name: Fetch terraform output
uses: actions/download-artifact@v4
with:
name: terraform-output-${{ inputs.targetComponent }}
- name: Get Node version
id: nodejs_version
shell: bash
run: |
echo "nodejs_version=$(grep "^nodejs\s" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT
- name: "Repo setup"
uses: ./.github/actions/node-install
with:
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
- name: "Set PR NUMBER environment variable"
shell: bash
run: |
echo "PR_NUMBER=${{ inputs.targetEnvironment }}" >> $GITHUB_ENV
- name: Run test - ${{ inputs.testType }}
shell: bash
env:
PROJECT: nhs
COMPONENT: ${{ inputs.targetComponent }}
run: |
make test-${{ inputs.testType }}