Skip to content

feature: add cancellation token to variety of ...WaitFor... APIs #4654

feature: add cancellation token to variety of ...WaitFor... APIs

feature: add cancellation token to variety of ...WaitFor... APIs #4654

Workflow file for this run

name: Tests
on:
push:
branches:
- main
- release-*
pull_request:
branches:
- main
- release-*
jobs:
test:
name: ${{ matrix.browser }}/${{ matrix.os }}/.NET 6
runs-on: ${{ matrix.os }}
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
browser: [chromium, firefox, webkit]
os: [windows-latest, ubuntu-latest, macos-12]
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
6.0.x
- name: Install prerequisites and download drivers
shell: bash
run: ./build.sh --download-driver
- name: Building
run: dotnet build ./src
- name: Installing Browsers and dependencies
run: pwsh src/Playwright/bin/Debug/netstandard2.0/playwright.ps1 install --with-deps
- name: Running tests
if: matrix.os != 'ubuntu-latest'
env:
BROWSER: ${{ matrix.browser }}
run: dotnet test ./src/Playwright.Tests/Playwright.Tests.csproj -c Debug -f net6.0 --logger:"console;verbosity=detailed" -- Playwright.Retries=1
- name: Running tests (Linux)
if: matrix.os == 'ubuntu-latest'
env:
BROWSER: ${{ matrix.browser }}
run: xvfb-run dotnet test ./src/Playwright.Tests/Playwright.Tests.csproj -c Debug -f net6.0 --logger:"console;verbosity=detailed" -- Playwright.Retries=1
test-net31:
name: chromium/ubuntu/.NET 3.1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
6.0.x
- name: Install prerequisites and download drivers
shell: bash
run: ./build.sh --download-driver
- name: Building
run: |
dotnet build -f netstandard2.0 ./src/Playwright/Playwright.csproj
dotnet build -f netcoreapp3.1 ./src/Playwright.Tests/Playwright.Tests.csproj
- name: Installing Browsers and dependencies
run: pwsh src/Playwright/bin/Debug/netstandard2.0/playwright.ps1 install --with-deps
- name: Running tests
env:
BROWSER: CHROMIUM
run: xvfb-run dotnet test ./src/Playwright.Tests/Playwright.Tests.csproj -c Debug -f netcoreapp3.1 --logger:"console;verbosity=detailed" -- Playwright.Retries=1