-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (47 loc) · 1.42 KB
/
cypress-cucumber-test.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
name: Cypress Cucumber Test
on:
push:
branches: [main]
jobs:
cypress_run:
runs-on: windows-latest
strategy:
matrix:
node-version: [20.15.1]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Update node manager
run: npm i npm@latest
- name: Install all dependencies\
run: npm i
- name: Insatll Cypress
run: npm install cypress
- name: Install badeball/cypress-cucumber-preprocessor
run: npm install @badeball/cypress-cucumber-preprocessor
- name: Install @bahmutov/cypress-esbuild-preprocessor
run: npm install @bahmutov/cypress-esbuild-preprocessor
- name: install multiple cucumber reporter dev
run: npm install multiple-cucumber-html-reporter --save-dev
- name: run test
run: npm run cypress:run
- name: Generate report
if: always()
run: npm run cypress:report
- name: Upload artifact cucumber-report
uses: actions/upload-artifact@v4
if: always()
with:
name: cucumber-report
path: ./reports/cucumber-htmlreport
- name: Deploy to Page
if: always()
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: reports/cucumber-htmlreport/