-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
49 lines (45 loc) · 1.12 KB
/
.gitlab-ci.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
image: cypress/browsers:node-20.14.0-chrome-126.0.6478.114-1-ff-127.0.1-edge-126.0.2592.61-1
stages:
- test
- merge_reports
🚀 run_cypress_set1:
stage: test
needs: []
script:
- npm ci
- npm run cypress:ci:set1
- npx mochawesome-merge cypress/results/*.json -o cypress-combined-report-$CI_JOB_ID.json || true
- ls -l -a
artifacts:
when: always
paths:
- cypress-combined-report-*
expire_in: 1 day
🚀 run_cypress_set2:
stage: test
needs: []
script:
- npm ci
- npm run cypress:ci:set2
- npx mochawesome-merge cypress/results/*.json -o cypress-combined-report-$CI_JOB_ID.json || true
- ls -l -a
artifacts:
when: always
paths:
- cypress-combined-report-*
expire_in: 1 day
📕 merge_reports:
stage: merge_reports
needs:
- job: '🚀 run_cypress_set1'
artifacts: true
- job: '🚀 run_cypress_set2'
artifacts: true
script:
- ls -l -a
- npx mochawesome-merge cypress-combined-report-*.json -o cypress-combined-report.json
artifacts:
when: always
paths:
- cypress-combined-report.json
expire_in: 1 day