-
Notifications
You must be signed in to change notification settings - Fork 54
38 lines (32 loc) · 876 Bytes
/
lighthouse.yml
File metadata and controls
38 lines (32 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Lighthouse
permissions:
contents: read
on: [pull_request]
jobs:
lhci:
name: Lighthouse
runs-on: ubuntu-latest
steps:
- name: Checkout the project
uses: actions/checkout@v3
- name: Use Node.js 24.x (LTS)
uses: actions/setup-node@v3
with:
node-version: 24.x
cache: 'npm'
- run: npm ci
- name: Use Ruby 2.7.3
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.3'
bundler-cache: true
working-directory: docs
- name: Build docs
run: npm run build:docs
env:
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run Lighthouse CI
run: npx @lhci/cli@0.9.x autorun
env:
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LHCI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}