Skip to content

Commit

Permalink
ci(unlighthouse): add unlighthouse benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Kwong committed Feb 15, 2024
1 parent e534502 commit 622eb40
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/unlighthouse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: E2E
on: deployment_status

jobs:
e2e:
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success'
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- run: npm install -g @unlighthouse/cli puppeteer
- run: |
unlighthouse-ci \
--site ${{ github.event.deployment_status.environment_url }} \
--budget 90 \
--no-cache \
--throttle \
--samples 3

0 comments on commit 622eb40

Please sign in to comment.