-
Notifications
You must be signed in to change notification settings - Fork 36
37 lines (37 loc) · 1.17 KB
/
upload-lighthouse.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Access Build Data
uses: mongodb/docs-worker-actions/build-artifact@main
env:
PROJECT_TO_BUILD: ${{ matrix.project }}
- 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: http://localhost:9000/${{ matrix.project }}/runner/master/