Skip to content
Merged
Show file tree
Hide file tree
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
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,25 @@ jobs:

- name: 🖥️ Test project (browser)
run: pnpm test:browser

a11y:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- run: corepack enable
- uses: actions/setup-node@v6
with:
node-version: lts/*
cache: pnpm

- name: 📦 Install dependencies
run: pnpm install

- name: 🏗️ Build project
run: pnpm build

- name: ♿ Accessibility audit (Lighthouse)
run: pnpx @lhci/cli autorun
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ coverage/
# Playwright
playwright-report/
test-results/

# Lighthouse
.lighthouseci
26 changes: 26 additions & 0 deletions .lighthouserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"ci": {
"collect": {
"startServerCommand": "pnpm preview",
"startServerReadyPattern": "Listening",
"url": [
"http://localhost:3000/",
"http://localhost:3000/search?q=nuxt",
"http://localhost:3000/nuxt"
],
"numberOfRuns": 1,
"settings": {
"onlyCategories": ["accessibility"],
"skipAudits": ["valid-source-maps"]
}
},
"assert": {
"assertions": {
"categories:accessibility": ["warn", { "minScore": 0.9 }]
}
},
"upload": {
"target": "temporary-public-storage"
}
}
}