diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0508ca8..501a65d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: node-version-file: ".node-version" - name: 🔨 Install Dependencies 🔨 run: sudo apt-get update && sudo apt-get install make - - name: 🚀 Deploy Website 🚀 + - name: 🚀 Deploy 🚀 run: make deploy env: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} diff --git a/lighthouserc.js b/lighthouserc.js index b80d823..458571b 100644 --- a/lighthouserc.js +++ b/lighthouserc.js @@ -1,7 +1,9 @@ module.exports = { ci: { collect: { - staticDistDir: "./public", + startServerCommand: "npm run start", + url: "http://localhost:9900", + startServerReadyTimeout: 60 * 5, // 5 minutes numberOfRuns: 1, }, assert: { @@ -10,7 +12,7 @@ module.exports = { "bf-cache": "off", "csp-xss": "off", "uses-long-cache-ttl": "off", - "total-byte-weight": "off" + "total-byte-weight": "off", }, }, }, diff --git a/package.json b/package.json index 15e6103..15485ab 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "build": "webpack", "dev": "webpack serve", - "start": "serve -p 9900 --no-request-logging public/", + "start": "npm run build && serve -p 9900 --no-request-logging public/", "lighthouse": "lhci autorun", "lint:pug": "prettier --write 'src/**/*.pug' --plugin='@prettier/plugin-pug'", "lint:js": "prettier --write 'src/**/*.js' '*.js'",