Skip to content

Commit 23f99a0

Browse files
Added GitHub Actions CI workflow for Playwright tests
1 parent 39f5763 commit 23f99a0

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Playwright Tests
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v3
19+
with:
20+
dotnet-version: '8.0.x'
21+
22+
- name: Restore dependencies
23+
run: dotnet restore
24+
25+
- name: Install Playwright browsers
26+
run: npx playwright install --with-deps
27+
28+
- name: Run Playwright Tests
29+
run: dotnet test --logger "trx;LogFileName=test_results.trx"

0 commit comments

Comments
 (0)