Skip to content

Commit 1405e46

Browse files
ci: config updates (#368)
* ci: minor config updates * ci: add npm cache to lightouse * build(dev-deps): update css-loader & webpack * ci: add minimum lighthouse scores * ci: increase number of runs for lighthouse * ci: lower expected scores in lighthouse
1 parent 945c935 commit 1405e46

7 files changed

Lines changed: 615 additions & 490 deletions

File tree

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Lighthouse CI
22
on: [push]
33
jobs:
44
lighthouseci:
@@ -7,8 +7,9 @@ jobs:
77
- uses: actions/checkout@v3
88
- uses: actions/setup-node@v3
99
with:
10-
node-version: '16'
11-
- run: npm ci && npm install -g @lhci/cli@0.9.x
10+
node-version: '18'
11+
cache: 'npm'
12+
- run: npm ci && npm install -g @lhci/cli@0.11.x
1213
- run: npm run build
1314
- run: lhci autorun
1415
env:

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ jobs:
44
eslint:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v2
8-
- uses: actions/setup-node@v2
7+
- uses: actions/checkout@v3
8+
- uses: actions/setup-node@v3
99
with:
10-
node-version: '15'
10+
node-version: '18'
1111
- name: Install modules
1212
run: npm ci
1313
- name: Run ESLint

.github/workflows/release-please.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
release-please:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: GoogleCloudPlatform/release-please-action@v2.28
10+
- uses: google-github-actions/release-please-action@v3
1111
with:
1212
token: ${{ secrets.GITHUB_TOKEN }}
1313
release-type: node

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ jobs:
44
jest:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v2
8-
- uses: actions/setup-node@v2
7+
- uses: actions/checkout@v3
8+
- uses: actions/setup-node@v3
99
with:
10-
node-version: '15'
10+
node-version: '18'
1111
- name: Install modules
1212
run: npm ci
1313
- name: Run tests

lighthouserc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
ci:
22
collect:
3+
numberOfRuns: 5
34
url:
45
['http://localhost/', 'http://localhost/exam', 'http://localhost/results']
56
staticDistDir: './dist'
67
isSinglePageApplication: true
8+
assert:
9+
assertions:
10+
'categories:performance': ['error', { 'minScore': 0.92 }]
11+
'categories:accessibility': ['error', { 'minScore': 0.93 }]
12+
'categories:best-practices': ['error', { 'minScore': 0.92 }]
13+
'categories:pwa': ['error', { 'minScore': 0.90 }]
14+
'categories:seo': ['error', { 'minScore': 0.92 }]
715
upload:
816
target: 'temporary-public-storage'

0 commit comments

Comments
 (0)