Skip to content

Bump stylelint from 15.7.0 to 15.8.0 in /src/Costellobot #759

Bump stylelint from 15.7.0 to 15.8.0 in /src/Costellobot

Bump stylelint from 15.7.0 to 15.8.0 in /src/Costellobot #759

Workflow file for this run

name: lighthouse
on:
pull_request:
branches: [ main, dotnet-vnext ]
workflow_dispatch:
permissions:
contents: read
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_MULTILEVEL_LOOKUP: 0
DOTNET_NOLOGO: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Setup .NET SDK
uses: actions/setup-dotnet@3447fd6a9f9e57506b15f895c5b76d3b197dc7c2 # v3.2.0
- name: Start website
shell: pwsh
env:
GitHub__ClientId: 'github-client-id'
GitHub__ClientSecret: 'github-client-secret'
run: |
Start-Process nohup 'dotnet run --project ./src/Costellobot/Costellobot.csproj --configuration Release'
$StatusCode = 0
$Attempts = 0
While ($Attempts -lt 20) {
$Response = Try {
Invoke-WebRequest "https://localhost:5001" -SkipCertificateCheck
} catch {
$_.Exception.Response
}
$StatusCode = $Response.StatusCode
If ($StatusCode -eq 200) {
break
}
$Attempts++
Start-Sleep -Seconds 5
}
If ($StatusCode -ne 200) {
throw "Failed to successfully connect to website after $Attempts attempts."
}
New-Item -Path ${{ github.workspace }}/artifacts -ItemType Directory | Out-Null
- name: Lighthouse
uses: foo-software/lighthouse-check-action@f78f162ef0ecd48a18244c427959f0b79ef4d553 # v10.0.0
id: lighthouse
with:
device: 'all'
gitHubAccessToken: ${{ secrets.LIGHTHOUSE_ACCESS_TOKEN }}
outputDirectory: ${{ github.workspace }}/artifacts
prCommentEnabled: true
urls: 'https://localhost:5001'
wait: true
- name: Check Lighthouse scores
uses: foo-software/lighthouse-check-status-action@f22f8cdcaf593a986749d39fe21382526de3f501 # v2.0.1
with:
lighthouseCheckResults: ${{ steps.lighthouse.outputs.lighthouseCheckResults }}
minAccessibilityScore: "95"
minBestPracticesScore: "92"
minPerformanceScore: "95"
minProgressiveWebAppScore: "50"
minSeoScore: "85"
- name: Publish artifacts
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
if: ${{ always() }}
with:
name: lighthouse
path: ${{ github.workspace }}/artifacts
if-no-files-found: ignore