Skip to content
Merged
Changes from 3 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
4a0d78d
Add Lighthouse workflow
martincostello Jun 3, 2022
4468229
Remove -WindowStyle
martincostello Jun 3, 2022
93b9130
Configure lighthouse-check-action
martincostello Jun 3, 2022
cfa1c75
Audit website
martincostello Jun 3, 2022
8477101
Audit local site
martincostello Jun 3, 2022
35f6e93
Upload report
martincostello Jun 3, 2022
f16d9ef
Forward slashes
martincostello Jun 3, 2022
0ed89ef
Verify website running
martincostello Jun 3, 2022
561040c
Remove Out-Null
martincostello Jun 3, 2022
c9dd389
Run as-is
martincostello Jun 3, 2022
565ebc8
Add space
martincostello Jun 3, 2022
ebff898
Run dotnet dev-certs
martincostello Jun 3, 2022
402188f
Do not block on dotnet run
martincostello Jun 3, 2022
f8c08df
Run on Windows
martincostello Jun 3, 2022
9208fe3
Keep shell alive
martincostello Jun 4, 2022
6065e73
Add a sleep
martincostello Jun 4, 2022
9076b06
Ignore TLS warning
martincostello Jun 4, 2022
7d29330
Parameterise URL
martincostello Jun 4, 2022
91fa2fb
Refactor website startup
martincostello Jun 4, 2022
a3d531f
Fix casing
martincostello Jun 4, 2022
2dd9c76
Remove Out-Null
martincostello Jun 4, 2022
83a0fa0
Use environment variable
martincostello Jun 4, 2022
257d32f
Remove environment variable
martincostello Jun 4, 2022
6d0e66b
Generate the HTTPS certificate
martincostello Jun 4, 2022
221e02b
Fix HTML report
martincostello Jun 4, 2022
0f5ac09
Create output directory
martincostello Jun 4, 2022
6353676
Remove directory output
martincostello Jun 4, 2022
52de183
Run npm build
martincostello Jun 4, 2022
baffce6
Use npm ci
martincostello Jun 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: lighthouse

on:
pull_request:
branches: [ main ]
workflow_dispatch:

env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
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@v3

- name: Setup .NET SDK
uses: actions/setup-dotnet@v2

- name: Build
shell: pwsh
run: Start-Process -FilePath "dotnet" -ArgumentList @("run", "--project", ".\src\Website\Website.csproj", "--configuration", "Release") | Out-Null

- name: Lighthouse
uses: foo-software/[email protected]
with:
device: 'all'
gitHubAccessToken: ${{ secrets.GITHUB_TOKEN }}
prCommentEnabled: true
urls: 'https://localhost:5001'
wait: true