-
Notifications
You must be signed in to change notification settings - Fork 61
33 lines (33 loc) · 986 Bytes
/
ci.yml
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
name: CI
on: [pull_request]
jobs:
lhci:
name: Lighthouse
runs-on: ubuntu-latest
strategy:
matrix:
castanet-config: [blue-grid,blue-row-jumbo-false,blue-row-jumbo-true]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.124.1'
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: build
run: |
cd exampleSite
# hugo server --baseUrl="http://localhost:1313"
ls
- name: run Lighthouse CI
run: |
npm install -g @lhci/[email protected]
lhci autorun --config=./test/$CASTANET_CONFIG.js
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
CASTANET_CONFIG: ${{ matrix.castanet-config }}