Skip to content

Verify minor components against Bootstrap 6; re-enable E2E tests in CI #3116

Verify minor components against Bootstrap 6; re-enable E2E tests in CI

Verify minor components against Bootstrap 6; re-enable E2E tests in CI #3116

Workflow file for this run

name: .NET
on:
push:
branches: [ main, v6 ]
pull_request:
branches: [ main, v6 ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: Cache NuGet packages
uses: actions/cache@v5
with:
path: ~/.nuget/packages
key: nuget-${{ runner.os }}-${{ hashFiles('Directory.Packages.props', '**/*.csproj') }}
restore-keys: |
nuget-${{ runner.os }}-
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release -p:TreatWarningsAsErrors=true
- name: Cache Playwright browsers
id: playwright-cache
uses: actions/cache@v5
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ hashFiles('Directory.Packages.props') }}
- name: Install Playwright browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: pwsh Havit.Blazor.E2ETests/bin/Release/net10.0/playwright.ps1 install --with-deps
- name: Install Playwright system dependencies
if: steps.playwright-cache.outputs.cache-hit == 'true'
run: pwsh Havit.Blazor.E2ETests/bin/Release/net10.0/playwright.ps1 install-deps
- name: Test
run: dotnet test --no-build -c Release --verbosity normal