This repository was archived by the owner on Mar 9, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Lighthouse CI
2+ on : [push]
3+ jobs :
4+ build :
5+ name : Collect LightHouse metrics
6+ runs-on : ubuntu-20.04
7+ defaults :
8+ run :
9+ working-directory : CodeIT
10+ steps :
11+ - name : Set up Git repository
12+ uses : actions/checkout@v2
13+ with :
14+ path : " CodeIT"
15+ fetch-depth : 0
16+ - name : Setup Hugo
17+ uses : peaceiris/actions-hugo@v2
18+ with :
19+ hugo-version : " latest"
20+ extended : true
21+ - name : Build static pages
22+ run : hugo --source=exampleSite -v --gc
23+ - name : Use Node.js 15.x
24+ uses : actions/setup-node@v2
25+ with :
26+ node-version : 15.x
27+ - name : Run the Lighthouse CI
28+ run : |
29+ npm install -g @lhci/cli@0.6.x
30+ lhci autorun
31+ env :
32+ LHCI_GITHUB_APP_TOKEN : ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ ci : {
3+ collect : {
4+ staticDistDir : "./exampleSite/public" ,
5+ urls : [
6+ "/" ,
7+ "theme-documentation-basics/" ,
8+ "theme-documentation-content/" ,
9+ "theme-documentation-built-in-shortcodes/" ,
10+ "theme-documentation-extended-shortcodes/" ,
11+ "basic-markdown-syntax/" ,
12+ "emoji-support/" ,
13+ "about/" ,
14+ ] ,
15+ } ,
16+ upload : {
17+ target : "lhci" ,
18+ serverBaseUrl : "https://hugo-codeit-lighthouse-server.herokuapp.com" ,
19+ token : "02c88e64-cb81-4b0f-829a-affa3445cbb1" ,
20+ } ,
21+ assert : {
22+ preset : "lighthouse:recommended" ,
23+ } ,
24+ } ,
25+ } ;
You can’t perform that action at this time.
0 commit comments