Skip to content

Commit 76b19f7

Browse files
committed
Switched back to Github Pages Action
1 parent ca585a9 commit 76b19f7

File tree

1 file changed

+15
-21
lines changed

1 file changed

+15
-21
lines changed

.github/workflows/playwright-tests.yml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ jobs:
1616
steps:
1717
# Step 1: Check out the repository code
1818
- name: Checkout repository
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v3
20+
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: '20'
2025

2126
# Step 2: Set up JDK 17 (adjust if you're using a different version)
2227
- name: Set up JDK 17
@@ -47,7 +52,10 @@ jobs:
4752
restore-keys: |
4853
${{ runner.os }}-maven
4954
50-
# Step 4: Run Maven to execute Playwright tests
55+
- name: Install Playwright dependencies
56+
run: npx playwright install-deps
57+
58+
# Step 6: Run Maven to execute Playwright tests
5159
- name: Run Playwright Tests
5260
run: mvn verify
5361

@@ -61,23 +69,9 @@ jobs:
6169
path: 'target/*.zip'
6270

6371
# Step 8: Deploy Allure report to GitHub Pages
64-
# - name: Deploy Allure Report to GitHub Pages
65-
# if: always() # Ensure this step runs even if tests fail
66-
# uses: peaceiris/actions-gh-pages@v3
67-
# with:
68-
# github_token: ${{ secrets.GITHUB_TOKEN }}
69-
# publish_dir: target/site/allure-maven-plugin
70-
71-
# Step 8: Upload Test Results (e.g., HTML reports)
72-
- name: Upload Playwright Test Results
73-
run: |
74-
mkdir -p artifacts
75-
cp -r target/site/allure-maven-plugin/* artifacts/
76-
if: success() # Run only if the tests pass
77-
continue-on-error: false
78-
#
79-
- name: Deploy to GitHub Pages
80-
uses: actions/deploy-pages@v1
72+
- name: Deploy Allure Report to GitHub Pages
73+
if: always() # Ensure this step runs even if tests fail
74+
uses: peaceiris/actions-gh-pages@v3
8175
with:
82-
# Optionally customize the directory if needed
83-
folder: artifacts # Deploy the artifacts folder to Pages
76+
github_token: ${{ secrets.GITHUB_TOKEN }}
77+
publish_dir: target/site/allure-maven-plugin

0 commit comments

Comments
 (0)