diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c7f6fe10..0be8708b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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/cli@0.13.x + - run: lhci autorun + env: + LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} + + test-node: needs: build runs-on: ${{ matrix.os }} diff --git a/.gitignore b/.gitignore index ffd04799..4e4279db 100644 --- a/.gitignore +++ b/.gitignore @@ -226,3 +226,4 @@ playwright-report .coverage test-e2e/fixtures/data/test-repo test-e2e/fixtures/data/gateway-conformance-fixtures +.lighthouseci diff --git a/.lighthouserc.json b/.lighthouserc.json new file mode 100644 index 00000000..a48fb7a3 --- /dev/null +++ b/.lighthouserc.json @@ -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" + } + } + } +} diff --git a/webpack.config.js b/webpack.config.js index 024791c1..74bf1e40 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -60,7 +60,7 @@ const paths = { */ const prod = { mode: 'production', - devtool: 'inline-source-map', + devtool: 'source-map', performance: { hints: false, maxEntrypointSize: 512000,