Skip to content

chore: update scripts/update-cli.ps1 to 3.6.0 (#5329) #660

chore: update scripts/update-cli.ps1 to 3.6.0 (#5329)

chore: update scripts/update-cli.ps1 to 3.6.0 (#5329) #660

name: Blazor WASM Playwright Tests
on:
push:
branches:
- main
- release/*
pull_request:
paths:
- 'src/*'
- 'src/Sentry/**'
- 'src/Sentry.AspNetCore/**'
- 'src/Sentry.AspNetCore.Blazor.WebAssembly/**'
- 'src/Sentry.Extensions.Logging/**'
- 'test/*'
- 'test/Sentry.AspNetCore.Blazor.WebAssembly.PlaywrightTests/**'
- 'test/Sentry.AspNetCore.Blazor.WebAssembly.PlaywrightTests.TestApp/**'
- 'test/Sentry.Testing/**'
- 'global.json'
- 'Directory.Build.props'
- 'Directory.Build.targets'
- 'nuget.config'
- '.github/workflows/playwright-blazor-wasm.yml'
workflow_dispatch:
jobs:
playwright:
name: Blazor WASM E2E
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
steps:
- name: Cancel Previous Runs
if: github.ref_name != 'main' && !startsWith(github.ref_name, 'release/')
uses: styfle/cancel-workflow-action@d07a454dad7609a92316b57b23c9ccfd4f59af66 # 0.13.1
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
submodules: recursive
- name: Install .NET SDK
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
with:
global-json-file: global.json
- name: Install .NET Workloads
run: dotnet workload restore --temp-dir "${{ runner.temp }}" --skip-sign-check
- name: Build
run: dotnet build test/Sentry.AspNetCore.Blazor.WebAssembly.PlaywrightTests -c Release
- name: Install Playwright Browsers
run: pwsh test/Sentry.AspNetCore.Blazor.WebAssembly.PlaywrightTests/bin/Release/net10.0/playwright.ps1 install chromium --with-deps
- name: Run Playwright Tests
run: dotnet test test/Sentry.AspNetCore.Blazor.WebAssembly.PlaywrightTests -c Release --no-build --logger "trx;LogFileName=results.trx"
- name: Upload Test Results
if: failure()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: playwright-blazor-wasm-results
path: test/Sentry.AspNetCore.Blazor.WebAssembly.PlaywrightTests/TestResults/