-
Notifications
You must be signed in to change notification settings - Fork 17
204 lines (166 loc) · 7.03 KB
/
e2e_test.yaml
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
name: "E2E Deployment testing workflow"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
delivery_stages:
runs-on: [ E2E-test-linux ]
steps:
- name: unit testing
run: |
echo "unit testing stage"
- name: build
run: |
echo "build stage"
- name: pop
run: |
echo "Pop stage"
e2e_linux_executions:
needs: delivery_stages
runs-on: [ E2E-test-linux ]
steps:
- name: install
run: |
sudo apt-get update
sudo apt-get install -qqy awscli jq openjdk-11-jdk
- name: download e2e artifacts
run: |
aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress
ls -al
aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress
ls -al
pwd
- name: Extract secrets
uses: aws-actions/aws-secretsmanager-get-secrets@v1
with:
secret-ids: |
QA_GITHUB_TOKEN
parse-json-secrets: true
- name: e2e_tests_linux
run: |
pwd
ls -la
if [[ $GITHUB_EVENT_NAME == 'push' ]]; then
echo github.action.version=${GITHUB_REF#refs/heads/} >> /tmp/test.properties
else
echo github.action.version=$GITHUB_HEAD_REF >> /tmp/test.properties
fi
echo "product=integrations" >> /tmp/test.properties
echo "product.name=integrations" >> /tmp/test.properties
echo "scm=github" >> /tmp/test.properties
echo "runner=linux" >> /tmp/test.properties
echo "runner.os=linux" >> /tmp/test.properties
echo "pipeline=true" >> /tmp/test.properties
echo "cloud.storage=S3" >> /tmp/test.properties
echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties
chmod 755 test-integrations-0.0.1-SNAPSHOT.jar
pwd && ls -la
cat /tmp/test.properties
java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/deployment/testng-github-scm.xml
- name: Archive results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-output
path: test-output
e2e_mac_executions:
needs: delivery_stages
runs-on: [ E2E-test-linux ]
steps:
- name: install
run: |
sudo apt-get update
sudo apt-get install -qqy awscli jq openjdk-11-jdk
- name: download e2e artifacts
run: |
aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress
ls -al
aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress
ls -al
pwd
- name: Extract secrets
uses: aws-actions/aws-secretsmanager-get-secrets@v1
with:
secret-ids: |
QA_GITHUB_TOKEN
parse-json-secrets: true
- name: e2e_tests_mac
run: |
if [[ $GITHUB_EVENT_NAME == 'push' ]]; then
echo github.action.version=${GITHUB_REF#refs/heads/} >> /tmp/test.properties
else
echo github.action.version=$GITHUB_HEAD_REF >> /tmp/test.properties
fi
echo "product=integrations" >> /tmp/test.properties
echo "product.name=integrations" >> /tmp/test.properties
echo "scm=github" >> /tmp/test.properties
echo "runner=macos" >> /tmp/test.properties
echo "runner.os=mac" >> /tmp/test.properties
echo "pipeline=true" >> /tmp/test.properties
echo "cloud.storage=S3" >> /tmp/test.properties
echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties
chmod 755 test-integrations-0.0.1-SNAPSHOT.jar
pwd && ls -la
cat /tmp/test.properties
java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/deployment/testng-github-scm.xml
- name: Archive results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-output
path: test-output
e2e_windows_executions:
needs: delivery_stages
runs-on: [ E2E-test-linux ]
steps:
- name: install
run: |
sudo apt-get update
sudo apt-get install -qqy awscli jq openjdk-11-jdk
- name: download e2e artifacts
run: |
aws s3 cp --recursive s3://e2e-integrations-test/e2e-artifacts/integrations/yml-data integrations/yml-data --no-progress
ls -al
aws s3 cp s3://e2e-integrations-test/e2e-artifacts/test-integrations-0.0.1-SNAPSHOT.jar test-integrations-0.0.1-SNAPSHOT.jar --no-progress
ls -al
pwd
- name: Extract secrets
uses: aws-actions/aws-secretsmanager-get-secrets@v1
with:
secret-ids: |
QA_GITHUB_TOKEN
parse-json-secrets: true
- name: e2e_tests_windows
run: |
if [[ $GITHUB_EVENT_NAME == 'push' ]]; then
echo github.action.version=${GITHUB_REF#refs/heads/} >> /tmp/test.properties
else
echo github.action.version=$GITHUB_HEAD_REF >> /tmp/test.properties
fi
echo "product=integrations" >> /tmp/test.properties
echo "product.name=integrations" >> /tmp/test.properties
echo "scm=github" >> /tmp/test.properties
echo "runner=Windows" >> /tmp/test.properties
echo "runner.os=Windows" >> /tmp/test.properties
echo "pipeline=true" >> /tmp/test.properties
echo "cloud.storage=S3" >> /tmp/test.properties
echo "github.token=${{env.QA_GITHUB_TOKEN_QA_GITHUB_TOKEN}}" >> /tmp/test.properties
chmod 755 test-integrations-0.0.1-SNAPSHOT.jar
pwd && ls -la
cat /tmp/test.properties
java -enableassertions -DPropertyManager.file=/tmp/test.properties -jar test-integrations-0.0.1-SNAPSHOT.jar -testjar test-integrations-0.0.1-SNAPSHOT.jar -xmlpathinjar com/synopsys/test/integrations/cases/suites/deployment/testng-github-scm.xml
- name: Archive results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-output
path: test-output
post_e2e_executions:
needs: [e2e_linux_executions, e2e_mac_executions, e2e_windows_executions]
runs-on: [ E2E-test-linux ]
steps:
- name: publish
run: |
echo "publish stage"