Skip to content

Commit 3659bd5

Browse files
Update main.yml
1 parent c37e05a commit 3659bd5

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,20 @@ jobs:
2525
- name: 🔨 Build the project
2626
run: dotnet build --configuration Release
2727

28-
- name: 📥 Install Node.js (for Playwright)
29-
uses: actions/setup-node@v4
30-
with:
31-
node-version: 18
28+
- name: 💡 Restore .NET Tools (like dotnet-playwright)
29+
run: dotnet tool restore
3230

3331
- name: 🚀 Install Playwright browsers
34-
run: npx playwright install --with-deps
32+
run: dotnet playwright install
3533

3634
- name: 🧪 Run UI tests
3735
run: dotnet test --configuration Release --logger "console;verbosity=detailed"
36+
37+
- name: 📸 Upload Screenshots if failed
38+
if: failure()
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: screenshots
42+
path: |
43+
./Screenshots/
44+
**/*.png

0 commit comments

Comments
 (0)