This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
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
1 parent
35f42ac
commit 317bff0
Showing
1 changed file
with
19 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
name: CI | ||
on: [push] | ||
name: Lighthouse CI | ||
on: | ||
push: | ||
jobs: | ||
lighthouseci: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'pnpm' | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
with: | ||
version: 8 | ||
- run: pnpm install | ||
- run: npm install -g pnpm && pnpm setup && pnpm install && pnpm install -g @lhci/[email protected] | ||
- run: pnpm run build | ||
- run: lhci autorun | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "pnpm" | ||
- name: Install dependencies | ||
run: pnpm install && pnpm install -g @lhci/[email protected] | ||
- name: Run build | ||
run: pnpm run build | ||
- name: Run Lighthouse CI | ||
run: lhci autorun |