Skip to content

Commit

Permalink
add env and upload to main lighthouse action
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeigs committed May 17, 2024
1 parent 2ae6636 commit 418786b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ on:
push:
branches:
- "main"
- "skunk-upload-lighthouse"
name: Run and Upload Lighthouse Report
jobs:
staging:
Expand Down Expand Up @@ -40,4 +41,14 @@ jobs:
npm install -g @lhci/cli
lhci collect --additive --config=.mobile-lighthouserc.js
lhci collect --additive --config=.desktop-lighthouserc.js
lhci upload
lhci upload --target=filesystem --outputDir=./lhci
- name: Upload Lighthouse to MongoDB
uses: mongodb/docs-worker-actions/upload-lighthouse@skunk-upload-lighthouse
env:
COMMIT_AUTHOR: ${{ github.event.head_commit?.author }}
COMMIT_HASH_AFTER: ${{ github.event.after }}
COMMIT_MESSAGE: ${{ github.event.head_commit?.message }}
COMMIT_TIMESTAMP: ${{ github.event.head_commit?.timestamp }}
COMMIT_HASH_BASE_REF: ${{ github.event.base_ref }}
PROJECT_TO_BUILD: ${{ matrix.project }}

0 comments on commit 418786b

Please sign in to comment.