Skip to content

Commit 6b85bcb

Browse files
chore: workflow adjustment (#1)
1 parent c763a6e commit 6b85bcb

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.github/workflows/playwright.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,25 @@ jobs:
1313
- uses: actions/setup-node@v2
1414
with:
1515
node-version: '16.x'
16+
- name: Install dependencies
17+
run: npm ci
1618
- name: Install Playwright
1719
run: npx playwright install --with-deps
1820
- name: Run Playwright tests
1921
run: npx playwright test
22+
- name: Generate Allure Report
23+
if: always()
24+
run: npm run allure-report
2025
- uses: actions/upload-artifact@v2
2126
if: always()
2227
with:
2328
name: playwright-test-results
2429
path: test-results/
30+
- uses: actions/upload-artifact@v2
31+
if: always()
32+
with:
33+
name: allure-test-results
34+
path: allure-report/
2535
- name: Publish JUnit Report
2636
uses: mikepenz/action-junit-report@v2
2737
if: always() # always run even if the previous step fails

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ Podrás acceder mi canal de [YouTube](https://www.youtube.com/channel/UCwEb6xrQt
4747

4848
**Para crear y abrir el reporte de Allure unificado de los resultados de los test**
4949

50-
npm run allure-report
50+
npm run open-report
5151

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"clean": "rimraf allure-results && rimraf allure-report && rimraf test-results && rimraf playwright-report && rimraf junit-results",
88
"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",
1011
"firefox": "npm run clean && npx playwright test --project=firefox",
1112
"chromiun": "npx playwright test --project=chromiun",
1213
"webkit": "npx playwright test --project=webkit",

0 commit comments

Comments
 (0)