Skip to content

Commit 82cd85d

Browse files
Fix file formatting completely
1 parent d6a4c9b commit 82cd85d

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.github/workflows/lighthouse.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Lighthouse CI
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
7+
jobs:
8+
lighthouse:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
14+
- name: Setup Ruby
15+
uses: ruby/setup-ruby@v1
16+
with:
17+
ruby-version: '3.2'
18+
bundler-cache: true
19+
20+
- name: Build Jekyll Site
21+
run: |
22+
gem install bundler
23+
bundle install
24+
bundle exec jekyll build
25+
26+
- name: Run Lighthouse CI
27+
uses: treosh/[email protected]
28+
with:
29+
configPath: './lighthouserc.json'
30+
uploadArtifacts: true
31+
temporaryPublicStorage: true
32+
runs: 3

lighthouserc.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"ci": {
3+
"collect": {
4+
"staticDistDir": "./_site",
5+
"url": [
6+
"http://localhost/",
7+
"http://localhost/events.html",
8+
"http://localhost/projects/"
9+
]
10+
},
11+
"assert": {
12+
"preset": "lighthouse:no-pwa",
13+
"assertions": {
14+
"categories:performance": ["warn", {"minScore": 0.8}],
15+
"categories:accessibility": ["warn", {"minScore": 0.8}],
16+
"categories:seo": ["warn", {"minScore": 0.8}],
17+
"categories:best-practices": ["warn", {"minScore": 0.8}]
18+
}
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)