From 0fc535daa2f8083c5bbfd1096079e0ef293a5b37 Mon Sep 17 00:00:00 2001 From: William Entriken Date: Wed, 20 Aug 2025 00:26:37 -0400 Subject: [PATCH 1/4] Update build-test-deploy.yml --- .github/workflows/build-test-deploy.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/build-test-deploy.yml b/.github/workflows/build-test-deploy.yml index d6defcc..fdb561c 100644 --- a/.github/workflows/build-test-deploy.yml +++ b/.github/workflows/build-test-deploy.yml @@ -111,6 +111,30 @@ jobs: path: cache/ key: test-cache + # Lighthouse + lighthouse: + name: Lighthouse + runs-on: ubuntu-latest + needs: build + steps: + - name: Download build artifact + uses: actions/download-artifact@v4 + with: + name: build-artifact + path: build/ + - name: Use Node.js 16.x + uses: actions/setup-node@v3 + with: + node-version: 16.x + - name: npm install, build + run: | + npm install + npm run build + - name: run Lighthouse CI + run: | + npm install -g @lhci/cli@0.15.x + lhci autorun + # Deploy the GitHub Pages artifact deploy-github-pages: name: Deploy to GitHub Pages From 030db47c82e02d0e03bd33033c3d1048e85dcf8c Mon Sep 17 00:00:00 2001 From: William Entriken Date: Wed, 20 Aug 2025 00:28:37 -0400 Subject: [PATCH 2/4] Update build-test-deploy.yml --- .github/workflows/build-test-deploy.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/build-test-deploy.yml b/.github/workflows/build-test-deploy.yml index fdb561c..a064ac3 100644 --- a/.github/workflows/build-test-deploy.yml +++ b/.github/workflows/build-test-deploy.yml @@ -126,10 +126,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: 16.x - - name: npm install, build - run: | - npm install - npm run build - name: run Lighthouse CI run: | npm install -g @lhci/cli@0.15.x From 2089ff1e949bed5dad935c87ce442f1218d6555f Mon Sep 17 00:00:00 2001 From: William Entriken Date: Wed, 20 Aug 2025 00:32:12 -0400 Subject: [PATCH 3/4] Update build-test-deploy.yml --- .github/workflows/build-test-deploy.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-test-deploy.yml b/.github/workflows/build-test-deploy.yml index a064ac3..422eec8 100644 --- a/.github/workflows/build-test-deploy.yml +++ b/.github/workflows/build-test-deploy.yml @@ -117,19 +117,19 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - name: Download build artifact + - name: Download artifact uses: actions/download-artifact@v4 with: name: build-artifact - path: build/ - - name: Use Node.js 16.x - uses: actions/setup-node@v3 + path: build/ + - name: Setup Node.js + uses: actions/setup-node@v4 with: - node-version: 16.x - - name: run Lighthouse CI - run: | - npm install -g @lhci/cli@0.15.x - lhci autorun + node-version: '20' + - name: Install Lighthouse CI + run: npm install -g @lhci/cli@0.15.x + - name: Run Lighthouse CI + run: lhci autorun # Deploy the GitHub Pages artifact deploy-github-pages: From 4d33644297ffdb82478b923e7f15845dcab1c8f8 Mon Sep 17 00:00:00 2001 From: William Entriken Date: Tue, 9 Dec 2025 13:06:56 -0500 Subject: [PATCH 4/4] handle extensionless --- .github/workflows/build-test-deploy.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-test-deploy.yml b/.github/workflows/build-test-deploy.yml index 422eec8..0b2c4fc 100644 --- a/.github/workflows/build-test-deploy.yml +++ b/.github/workflows/build-test-deploy.yml @@ -95,6 +95,13 @@ jobs: with: name: build-artifact path: build/ + - name: Create extensionless URL symlinks + run: | + find build -name "*.html" -type f | while read file; do + dir=$(dirname "$file") + base=$(basename "$file" .html) + ln -sf "$(basename "$file")" "$dir/$base" + done - name: Restore testing cache uses: actions/cache/restore@v4 with: @@ -125,7 +132,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20' + node-version: "20" - name: Install Lighthouse CI run: npm install -g @lhci/cli@0.15.x - name: Run Lighthouse CI