Skip to content

Commit

Permalink
add upload-lighthouse action using docs-worker-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeigs committed May 16, 2024
1 parent 2dedee6 commit 8e25852
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/upload-lighthouse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
push:
branches:
- "skunk-upload-lighthouse"
name: Run and Upload Lighthouse Report to Atlas
jobs:
staging:
permissions: write-all
runs-on: ubuntu-latest
strategy:
matrix:
project: ['cloud-docs', 'docs']
url: ['http://localhost:9000/docs/runner/master/', 'http://localhost:9000/cloud-docs/runner/master/']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Build Snooty
env:
NPM_BASE_64_AUTH: ${{ secrets.NPM_BASE_64_AUTH }}
NPM_EMAIL: ${{ secrets.NPM_EMAIL }}
GATSBY_BUILD_FROM_JSON: true
GATSBY_PARSER_USER: docsworker-xlarge
GATSBY_SITE: ${{ matrix.project }}
GATSBY_PARSER_BRANCH: main
run: |
npm ci --legacy-peer-deps
npm run build
- name: Run and Upload Lighthouse action
uses: mongodb/docs-worker-actions/upload-lighthouse@skunk-upload-lighthouse
env:
PROJECT_TO_BUILD: ${{ matrix.project }}
STAGING_URL: ${{ matrix.url }}

0 comments on commit 8e25852

Please sign in to comment.