-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (37 loc) · 1.33 KB
/
ci.yml
File metadata and controls
49 lines (37 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: CI
on:
schedule:
- cron: "0 3 * * *"
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Install Playwright CLI
run: dotnet tool install --global Microsoft.Playwright.CLI
- name: Add .NET tools to PATH
run: echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
# ✅ This is what your runner is missing (e.g. libwayland-server0, etc).
# It installs the correct Linux deps for Playwright browsers on ubuntu-latest.
- name: Install Playwright OS dependencies
run: sudo env "PATH=$PATH" playwright install-deps
- name: Install Playwright Browsers
run: playwright install
- name: Test (NUnit)
run: dotnet test Playwright.NUnit.Testing/Playwright.NUnit.Testing.csproj --configuration Release --no-build
- name: Test (TUnit)
run: dotnet run --configuration Release --project Playwright.TUnit.Testing/Playwright.TUnit.Testing.csproj