-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* #5 lighthouse github action * #5 changed node version * #5 change base url (test running against index.html) * #5 fixed base url for lighthouse * #5 audit lighthouse action * #5 update github action * #5 lighthouse audit checks * update scores thresholds
- Loading branch information
1 parent
e964193
commit 96f7f03
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: CI | ||
on: [push] | ||
jobs: | ||
lighthouseci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: npm install && npm install -g @lhci/[email protected] | ||
- run: npm run build | ||
- run: lhci autorun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module.exports = { | ||
ci: { | ||
upload: { | ||
target: 'temporary-public-storage', | ||
}, | ||
collect: { | ||
staticDistDir: './dist', | ||
"url": [ | ||
"http://localhost/" | ||
] | ||
}, | ||
assert: { | ||
assertions: { | ||
'categories:accessibility': ["error", { minScore: 0.9 }], | ||
'categories:best-practices': ["warn", { minScore: 0.8 }], | ||
"categories:performance": ["error", {"minScore": 0.8}], | ||
'categories:seo': ["error", { minScore: 0.9 }], | ||
}, | ||
}, | ||
}, | ||
}; |