From 418786be4d2a950dc18dd21c820fc6b6cdce4676 Mon Sep 17 00:00:00 2001 From: Matt Meigs Date: Fri, 17 May 2024 10:43:16 -0400 Subject: [PATCH] add env and upload to main lighthouse action --- .github/workflows/lighthouse.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index 9190f7e65..1458b36ca 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -2,6 +2,7 @@ on: push: branches: - "main" + - "skunk-upload-lighthouse" name: Run and Upload Lighthouse Report jobs: staging: @@ -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 }} + \ No newline at end of file