-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (70 loc) · 2.02 KB
/
ui-deploy-feature-to-sandbox-manual.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: 'SANDBOX UI - Deploy Feature Branch to Sandbox'
on:
workflow_dispatch:
inputs:
build_branch:
description: 'Feature branch to push.'
required: true
type: 'string'
default: 'main'
sandbox:
description: 'Which Sandbox to push to.'
required: true
type: 'string'
default: 'ndr'
environment:
description: 'Which Environment settings to use.'
required: true
type: 'string'
default: 'development'
workflow_call:
inputs:
build_branch:
description: 'Feature branch to push.'
required: true
type: 'string'
default: 'main'
sandbox:
description: 'Which Sandbox to push to.'
required: true
type: 'string'
default: 'ndr'
environment:
description: 'Which Environment settings to use.'
required: true
type: 'string'
default: 'development'
secrets:
AWS_ASSUME_ROLE:
required: true
permissions:
pull-requests: write
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
react_testing_job:
name: Run UI Unit Tests
uses: ./.github/workflows/base-jest-test.yml
with:
build_branch: ${{ inputs.build_branch }}
deploy_ui:
name: Deploy UI
uses: ./.github/workflows/base-deploy-ui.yml
with:
build_branch: ${{ inputs.build_branch }}
environment: ${{ inputs.environment }}
sandbox: ${{ inputs.sandbox }}
secrets:
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}
smoketest:
uses: ./.github/workflows/ui-smoketest-base.yml
needs: ['deploy_ui']
with:
build_branch: ${{github.event.pull_request.head.ref}}
environment: development
sandbox: ndr-dev
aws_region: ${{ vars.AWS_REGION }}
secrets:
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}
CYPRESS_USERNAME: ${{ secrets.CYPRESS_USERNAME }}
CYPRESS_PASSWORD: ${{ secrets.CYPRESS_PASSWORD }}