-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
22 changed files
with
3,494 additions
and
217 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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Continuous integration | ||
|
||
on: | ||
push: | ||
branches-ignore: deploy/gh-pages | ||
|
||
jobs: | ||
lighthouse: | ||
# A tool to measure website performance. See also: | ||
# - https://github.com/GoogleChrome/lighthouse | ||
# - https://github.com/GoogleChrome/lighthouse-ci | ||
# - https://github.com/GoogleChrome/lighthouse-ci/blob/main/docs/getting-started.md | ||
|
||
name: Lighthouse | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js 20.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.x | ||
|
||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.3" | ||
bundler-cache: true | ||
cache-version: 0 | ||
working-directory: "${{ github.workspace }}/src" | ||
|
||
# We need a development version because we need a base url of '' (empty string) | ||
- name: Build the development version of the site | ||
run: | | ||
npm ci | ||
npm run build-dev | ||
- name: Setup service worker | ||
run: | | ||
npm run workbox-generate | ||
- name: Run lighthouse | ||
run: | | ||
npm run lighthouse | ||
- name: Upload Lighthouse report | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: lighthouse-report | ||
path: .lighthouseci | ||
|
||
# we need this because the folders/files start with a `.` which is considered to be hidden on Linux | ||
include-hidden-files: true |
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,12 @@ | ||
{ | ||
"ci": { | ||
"collect": { | ||
"staticDistDir": "./src/_site" | ||
}, | ||
"assert": {}, | ||
"upload": { | ||
"target": "filesystem", | ||
"outputDir": ".lighthouseci" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -16,6 +16,10 @@ Gemfile.lock | |
|
||
*.gem | ||
|
||
# -- Lighthouse -- | ||
|
||
.lighthouseci | ||
|
||
# -- Files generated by OS -- | ||
|
||
.DS_Store | ||
|
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
Oops, something went wrong.