diff --git a/.github/workflows/build-test-deploy.yml b/.github/workflows/build-test-deploy.yml index d6defcc..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: @@ -111,6 +118,26 @@ jobs: path: cache/ key: test-cache + # Lighthouse + lighthouse: + name: Lighthouse + runs-on: ubuntu-latest + needs: build + steps: + - name: Download artifact + uses: actions/download-artifact@v4 + with: + name: build-artifact + path: build/ + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + 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: name: Deploy to GitHub Pages