Skip to content

Add LHCI config and workflow #3

Add LHCI config and workflow

Add LHCI config and workflow #3

Workflow file for this run

name: Build project and run Lighthouse CI
on: [push]
jobs:
lhci:
name: Lighthouse CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: npm install
run: |
npm install --force
- name: npm build
run: |
npm build
- name: run Lighthouse CI
run: |
npm install -g @lhci/cli@0.3.x
lhci autorun || echo "LHCI failed!"