Skip to content

Commit

Permalink
tech: test lighthouse ci
Browse files Browse the repository at this point in the history
  • Loading branch information
octo-theg committed Jul 3, 2024
1 parent 93aec62 commit 10b479a
Show file tree
Hide file tree
Showing 4 changed files with 1,969 additions and 56 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ jobs:
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Lighthouse CI
uses: treosh/lighthouse-ci-action@v12
with:
configPath: './.lighthouserc'
22 changes: 22 additions & 0 deletions .lighthouserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"ci": {
"collect": {
"startServerCommand": "yarn build && yarn start",
"startServerReadyPattern": "ready on",
"url": [
"http://localhost:3000"
],
"numberOfRuns": 1,
"settings": {
"preset": "desktop"
}
},
"assert": {
"preset": "lighthouse:recommended"
},
"upload": {
"target": "temporary-public-storage"
},
"server": {}
}
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@
"dependencies": {
"@elastic/apm-rum": "5.16.0",
"@elastic/apm-rum-react": "2.0.2",
"@lhci/cli": "0.14.x",
"@next/bundle-analyzer": "14.2.4",
"crypto-js": "4.2.0",
"dotenv": "16.4.5",
"elastic-apm-node": "4.6.0",
"firebase": "10.12.2",
"global": "^4.4.0",
"html-react-parser": "5.1.10",
"jsonwebtoken": "9.0.2",
"lodash.isequal": "4.5.0",
Expand Down
Loading

0 comments on commit 10b479a

Please sign in to comment.