File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,25 @@ jobs:
13
13
- uses : actions/setup-node@v2
14
14
with :
15
15
node-version : ' 16.x'
16
+ - name : Install dependencies
17
+ run : npm ci
16
18
- name : Install Playwright
17
19
run : npx playwright install --with-deps
18
20
- name : Run Playwright tests
19
21
run : npx playwright test
22
+ - name : Generate Allure Report
23
+ if : always()
24
+ run : npm run allure-report
20
25
- uses : actions/upload-artifact@v2
21
26
if : always()
22
27
with :
23
28
name : playwright-test-results
24
29
path : test-results/
30
+ - uses : actions/upload-artifact@v2
31
+ if : always()
32
+ with :
33
+ name : allure-test-results
34
+ path : allure-report/
25
35
- name : Publish JUnit Report
26
36
uses : mikepenz/action-junit-report@v2
27
37
if : always() # always run even if the previous step fails
Original file line number Diff line number Diff line change @@ -47,5 +47,5 @@ Podrás acceder mi canal de [YouTube](https://www.youtube.com/channel/UCwEb6xrQt
47
47
48
48
** Para crear y abrir el reporte de Allure unificado de los resultados de los test**
49
49
50
- npm run allure -report
50
+ npm run open -report
51
51
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"clean" : " rimraf allure-results && rimraf allure-report && rimraf test-results && rimraf playwright-report && rimraf junit-results" ,
8
8
"play-report" : " npx playwright show-report" ,
9
- "allure-report" : " allure generate ./allure-results --clean && allure open ./allure-report" ,
9
+ "allure-report" : " allure generate ./allure-results --clean" ,
10
+ "open-report" : " npm run allure-report && allure open ./allure-report" ,
10
11
"firefox" : " npm run clean && npx playwright test --project=firefox" ,
11
12
"chromiun" : " npx playwright test --project=chromiun" ,
12
13
"webkit" : " npx playwright test --project=webkit" ,
You can’t perform that action at this time.
0 commit comments