Skip to content

Bump webpack from 5.95.0 to 5.96.0 in /src/AdventOfCode.Site #2380

Bump webpack from 5.95.0 to 5.96.0 in /src/AdventOfCode.Site

Bump webpack from 5.95.0 to 5.96.0 in /src/AdventOfCode.Site #2380

Workflow file for this run

name: lighthouse
on:
pull_request:
branches:
- main
- dotnet-vnext
- dotnet-nightly
workflow_dispatch:
permissions:
contents: read
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: 1
NUGET_XMLDOC_MODE: skip
TERM: xterm
jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Start website
shell: pwsh
run: |
Start-Process nohup 'dotnet run --project ./src/AdventOfCode.Site/AdventOfCode.Site.csproj --configuration Release /p:EnableNETAnalyzers=false /p:EnforceCodeStyleInBuild=false'
$StatusCode = 0
$Attempts = 0
While ($Attempts -lt 25) {
$Response = Try {
Invoke-WebRequest "https://localhost:50001" -SkipCertificateCheck
} catch {
$_.Exception.Response
}
$StatusCode = $Response.StatusCode
If ($StatusCode -eq 200) {
break
}
$Attempts++
Start-Sleep -Seconds 10
}
If ($StatusCode -ne 200) {
throw "Failed to successfully connect to website after $Attempts attempts."
}
New-Item -Path "${env:GITHUB_WORKSPACE}/artifacts/lighthouse" -ItemType Directory | Out-Null
- name: Lighthouse
uses: foo-software/[email protected]
id: lighthouse
with:
device: 'all'
gitHubAccessToken: ${{ secrets.LIGHTHOUSE_ACCESS_TOKEN }}
outputDirectory: ${{ github.workspace }}/artifacts/lighthouse
prCommentEnabled: true
urls: 'https://localhost:50001'
wait: true
- name: Check Lighthouse scores
uses: foo-software/[email protected]
with:
lighthouseCheckResults: ${{ steps.lighthouse.outputs.lighthouseCheckResults }}
minAccessibilityScore: ${{ vars.LIGHTHOUSE_MIN_ACCESSIBILITY_SCORE }}
minBestPracticesScore: ${{ vars.LIGHTHOUSE_MIN_BEST_PRACTICES_SCORE }}
minPerformanceScore: ${{ vars.LIGHTHOUSE_MIN_PERFORMANCE_SCORE }}
minProgressiveWebAppScore: ${{ vars.LIGHTHOUSE_MIN_PROGRESSIVE_WEB_APP_SCORE }}
minSeoScore: ${{ vars.LIGHTHOUSE_MIN_SEO_SCORE }}
- name: Publish artifacts
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: lighthouse
path: ${{ github.workspace }}/artifacts/lighthouse
if-no-files-found: ignore