Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,23 @@ 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: pnpm lhci
Comment thread
rshigg marked this conversation as resolved.
Outdated
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"
}
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"test:browser:update": "playwright test --update-snapshots",
"test:nuxt": "vitest --project nuxt",
"test:types": "nuxt prepare && vue-tsc -b --noEmit && pnpm --filter npmx-connector test:types",
"test:unit": "vitest --project unit"
"test:unit": "vitest --project unit",
"lhci": "lhci autorun"
},
"dependencies": {
"@iconify-json/simple-icons": "^1.2.67",
Expand Down
Loading