Lighthouse: DUmmy test #1
Workflow file for this run
This file contains hidden or 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
name: Update lighthouse report artifact for main branch | |
on: | |
push: | |
branches: | |
- main | |
- "**" | |
workflow_dispatch: | |
env: | |
GITHUB_PR_NUMBER: "main" | |
jobs: | |
generate-lighthouse-report: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v5 | |
with: | |
ref: ${{ github.event.workflow_run.head_branch }} | |
- uses: actions/setup-node@v5 | |
with: | |
node-version: 18 | |
- name: Installing packages | |
run: cd performance && npm ci | |
- name: Run hugo site | |
run: hugo serve | |
- name: Generating lighthouse reports for main... | |
run: | | |
node performance/lighthouse-script.js |