-
Notifications
You must be signed in to change notification settings - Fork 1
214 lines (206 loc) · 6.73 KB
/
Copy pathmaven.yml
File metadata and controls
214 lines (206 loc) · 6.73 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
name: Java CI
on:
repository_dispatch:
types: run-tests
push:
# Sequence of patterns matched against refs/heads
branches:
- master
- pipeline-fixed
jobs:
API-test-ncg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 11
- name: Run tests
run: mvn clean "-Dtest=*APITest" test
env:
ConsentManagerSecret: ${{ secrets.ConsentManagerSecret }} # required
HIPSecret: ${{ secrets.HIPSecret }} # required
env: ncg # required
- name: Print Run id
run: echo $GITHUB_RUN_ID
- uses: 8398a7/action-slack@v2
with:
status: ${{ job.status }}
text: Functional API Tests
channel: '#botcave'
only_mention_fail: USXBM5WPQ,here
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: always()
API-test-nhaDev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 11
- name: Run tests
run: mvn clean "-Dgroups=nhsDev" test
env:
ConsentManagerSecret: ${{ secrets.ConsentManagerSecret }} # required
HIPSecret: ${{ secrets.HIPSecret }} # required
env: nhsDev # required
- name: Print Run id
run: echo $GITHUB_RUN_ID
- uses: 8398a7/action-slack@v2
with:
status: ${{ job.status }}
text: Functional API Tests
channel: '#botcave'
only_mention_fail: USXBM5WPQ,here
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: always()
# mobile-test-ncg:
# runs-on: macOS-latest
# steps:
# - name: checkout
# uses: actions/checkout@v2
# - name: set up node
# uses: actions/setup-node@v1
# - name: Set up JDK 1.8
# uses: actions/setup-java@v1
# with:
# fetch-depth: 1
# node-version: '10.16'
# java-version: 11
# - run: npm install -g appium
# - name: run mobile tests on NCG
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: 29
# profile: Nexus 6
# script: mvn clean "-Dtest=/**/MobileAppTests/Tests/*Test" test
# env:
# Authorization: ${{ secrets.Authorization }}
# env: ncg # required
# - name: Notify on Slack
# uses: 8398a7/action-slack@v2
# with:
# status: ${{ job.status }}
# author_name: Functional Tests on NCG
# text: Functional Mobile Tests on NCG
# channel: '#botcave'
# only_mention_fail: USXBM5WPQ,here
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
# if: always()
mobile-test-nhs-dev:
runs-on: macOS-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: set up node
uses: actions/setup-node@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
fetch-depth: 1
node-version: '10.16'
java-version: 11
- run: npm install -g appium
- name: run mobile tests on NHS Dev
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
target: playstore
profile: pixel_2
script: mvn clean "-Dtest=/**/mobiletests/tests/*Test" test
env:
Authorization: ${{ secrets.Authorization }}
env: nhsDev # required
- name: Notify on Slack
uses: 8398a7/action-slack@v2
with:
status: ${{ job.status }}
author_name: Functional Tests on NHS Dev
text: Functional Mobile Tests on NHS Dev
channel: '#botcave'
only_mention_fail: USXBM5WPQ,here
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: always()
# mobile-test-nhs-UAT:
# runs-on: macOS-latest
# steps:
# - name: checkout
# uses: actions/checkout@v2
# - name: set up node
# uses: actions/setup-node@v1
# - name: Set up JDK 1.8
# uses: actions/setup-java@v1
# with:
# fetch-depth: 1
# node-version: '10.16'
# java-version: 1.8
# - run: npm install -g appium
# - name: run mobile tests on NHS Dev
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: 29
# profile: Nexus 6
# script: mvn clean "-Dtest=/**/MobileAppTests/Tests/LoginTest" test
# env:
# Authorization: ${{ secrets.Authorization }}
# env: nhsUAT # required
# - name: Notify on Slack
# uses: 8398a7/action-slack@v2
# with:
# status: ${{ job.status }}
# author_name: Functional Tests on NHS UAT
# text: Functional Mobile Tests on NHS UAT
# channel: '#botcave'
# only_mention_fail: USXBM5WPQ,here
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
# if: always()
# mobile-test-nhs-Sandbox:
# runs-on: macOS-latest
# steps:
# - name: checkout
# uses: actions/checkout@v2
# - name: set up node
# uses: actions/setup-node@v1
# - name: Set up JDK 1.8
# uses: actions/setup-java@v1
# with:
# fetch-depth: 1
# node-version: '10.16'
# java-version: 11
# - run: npm install -g appium
# - name: run mobile tests on NHS Dev
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: 29
# profile: Nexus 6
# script: mvn clean "-Dtest=/**/MobileAppTests/Tests/LoginTest" test
# env:
# Authorization: ${{ secrets.Authorization }}
# env: nhsSandbox # required
# - name: Notify on Slack
# uses: 8398a7/action-slack@v2
# with:
# status: ${{ job.status }}
# author_name: Functional Tests on NHS Sandbox
# text: Functional Mobile Tests on NHS Sandbox
# channel: '#botcave'
# only_mention_fail: USXBM5WPQ,here
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
# if: always()
#curl -H "Accept: application/vnd.github.everest-preview+json" \
# -H "Authorization: token <TOKEN>" \
# --request POST \
# --data '{"event_type": "run-tests"}' \
# https://api.github.com/repos/ProjectEKA/ProjectEKATests/dispatches