Skip to content

Commit b752719

Browse files
authored
Merge pull request #40 from S7-OpenLearning-Individual/feature/39/lighthouse-reporting
Add report file and workflow file
2 parents 23d3f8c + e684fde commit b752719

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,25 @@ jobs:
4848
- name: Deploy to GitHub Pages
4949
id: deployment
5050
uses: actions/deploy-pages@v4
51+
52+
lighthouse:
53+
name: Lighthouse
54+
needs: deploy
55+
runs-on: ubuntu-latest
56+
57+
steps:
58+
- uses: actions/checkout@v4
59+
- name: Use Node.js 20
60+
uses: actions/setup-node@v4
61+
with:
62+
node-version: 20
63+
64+
- name: npm install, build
65+
run: |
66+
npm install
67+
npm run build
68+
69+
- name: run Lighthouse CI
70+
run: |
71+
npm install -g @lhci/cli@0.15.x
72+
lhci autorun

lighthouserc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
ci: {
3+
upload: {
4+
target: "temporary-public-storage",
5+
},
6+
},
7+
};

0 commit comments

Comments
 (0)