-
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.
- Loading branch information
1 parent
c06e008
commit d43d78b
Showing
3 changed files
with
32 additions
and
14 deletions.
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 |
---|---|---|
@@ -1,16 +1,13 @@ | ||
name: Audit live site | ||
on: push | ||
|
||
name: CI | ||
on: [push] | ||
jobs: | ||
audit: | ||
lighthouseci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Audit live URL | ||
uses: jakejarvis/lighthouse-action@master | ||
with: | ||
url: 'https://womeninsoftware.jp/' | ||
- name: Upload results as an artifact | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: report | ||
path: './report' | ||
- 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/" | ||
] | ||
}, | ||
asserts: { | ||
assertions: { | ||
'categories:accessibility': ['warn', { minScore: 1 }], | ||
'categories:best-practices': ['warn', { minScore: 1.0 }], | ||
'categories:performance': ['warn', { minScore: 0.2 }], | ||
'categories:seo': ['warn', { minScore: 1.0 }], | ||
}, | ||
}, | ||
}, | ||
}; |