Skip to content

Commit

Permalink
Create lighthouse.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nwanduka authored Jul 1, 2024
1 parent 8dff58b commit 78ae2d9
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: lighthouse
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
lighthouse:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm install -g http-server
- run: npm run build --if-present
- run: http-server -s &
- name: Run Lighthouse
run: |
npm install -g lhci/[email protected]
sleep 90
lhci autorun

0 comments on commit 78ae2d9

Please sign in to comment.