Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@ jobs:
- run: npm run --if-present dep-check
- run: npm run --if-present doc-check

lighthouse:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install && npm install -g @lhci/[email protected]
- run: lhci autorun
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}


test-node:
needs: build
runs-on: ${{ matrix.os }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,4 @@ playwright-report
.coverage
test-e2e/fixtures/data/test-repo
test-e2e/fixtures/data/gateway-conformance-fixtures
.lighthouseci
23 changes: 23 additions & 0 deletions .lighthouserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"ci": {
"collect": {
"staticDistDir": "./dist"
},
"assert": {
"preset": "lighthouse:no-pwa",
"assertions": {
"color-contrast": "off",
"csp-xss": "off",
"font-display": "off",
"is-crawlable": "off",
"link-text": "off",
"maskable-icon": "off",
"splash-screen": "off",
"themed-omnibox": "off",
"total-byte-weight": "off",
"first-meaningful-paint": "off",
"unused-css-rules": "off"
}
}
}
}
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const paths = {
*/
const prod = {
mode: 'production',
devtool: 'inline-source-map',
devtool: 'source-map',
performance: {
hints: false,
maxEntrypointSize: 512000,
Expand Down