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
16 changes: 16 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,19 @@ jobs:
- name: Install workspace dependencies
run: npm install
working-directory: .

- name: Install dependencies
run: npm install
working-directory: templates/react-javascript

- name: lighthouse mobile audit
run: npm run lhci:mobile
working-directory: templates/react-javascript
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}

- name: lighthouse desktop audit
run: npm run lhci:desktop
working-directory: templates/react-javascript
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
17 changes: 17 additions & 0 deletions templates/react-javascript/lighthouserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"ci": {
"collect": {
"startServerCommand": "npm run build && npm start",
"url": ["http://localhost:3000/"],
"numberOfRuns": 3
},
"assert": {
"assertions": {
"categories:accessibility": ["error", { "minScore": 0.1 }]
}
},
"upload": {
"target": "temporary-public-storage"
}
}
}