Skip to content
Open
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
24 changes: 24 additions & 0 deletions .github/workflows/lighthouse-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build project and run Lighthouse CI
on: [push]
jobs:
lhci:
name: Lighthouse CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: npm install
run: |
npm install
- name: build project
run: |
npm run build
- name: run Lighthouse CI
run: |
npm install -g @lhci/cli@0.3.x
lhci autorun --upload.target=temporary-public-storage || echo "LHCI failed!"
env:
LHCI_GITHUB_APP_TOKEN: ${{secrets.LHCI_GITHUB_APP_TOKEN}}
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,35 @@ yarn-error.log*
*.log
public/sitemap.xml
.mdx-data
.lighthouseci/assertion-results.json
.lighthouseci/lhr-1602339281201.html
.lighthouseci/lhr-1602339281201.json
.lighthouseci/lhr-1602339285738.html
.lighthouseci/lhr-1602339285738.json
.lighthouseci/lhr-1602339290213.html
.lighthouseci/lhr-1602339290213.json
.lighthouseci/lhr-1602339295531.html
.lighthouseci/lhr-1602339295531.json
.lighthouseci/lhr-1602339300920.html
.lighthouseci/lhr-1602339300920.json
.lighthouseci/lhr-1602339305524.html
.lighthouseci/lhr-1602339305524.json
.lighthouseci/lhr-1602339310151.html
.lighthouseci/lhr-1602339310151.json
.lighthouseci/lhr-1602339314865.html
.lighthouseci/lhr-1602339314865.json
.lighthouseci/lhr-1602339319500.html
.lighthouseci/lhr-1602339319500.json
.lighthouseci/lhr-1602339324903.html
.lighthouseci/lhr-1602339324903.json
.lighthouseci/lhr-1602339330386.html
.lighthouseci/lhr-1602339330386.json
.lighthouseci/lhr-1602339335844.html
.lighthouseci/lhr-1602339335844.json
.lighthouseci/lhr-1602339341262.html
.lighthouseci/lhr-1602339341262.json
.lighthouseci/lhr-1602339345960.html
.lighthouseci/lhr-1602339345960.json
.lighthouseci/lhr-1602339351382.html
.lighthouseci/lhr-1602339351382.json
.lighthouseci/links.json
22 changes: 22 additions & 0 deletions lighthouserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = {
ci: {
collect: {
startServerCommand: 'npm run start',
url: [
'http://localhost:3000',
'http://localhost:3000/rounds',
'http://localhost:3000/skins'
],
numberOfRuns: 5
},
assert: {
assertions: {
'categories:performance': ['warn', { minScore: 0.9 }],
'categories:accessibility': ['warn', { minScore: 0.9 }]
}
},
upload: {
target: 'temporary-public-storage'
}
}
};