Skip to content
Open
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
27 changes: 27 additions & 0 deletions .github/workflows/build-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
Loading