chore(deps): bump @sentry/integrations from 7.61.1 to 7.62.0 #10501
Workflow file for this run
This file contains 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: Performance | |
on: | |
pull_request: | |
paths: | |
- client/src/** | |
- .github/workflows/performance.yml | |
- package.json | |
- yarn.lock | |
jobs: | |
lighthouse: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
# Needed because of | |
# https://github.com/GoogleChrome/lighthouse-ci/issues/172 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- uses: actions/checkout@v3 | |
with: | |
repository: mdn/content | |
path: mdn/content | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
- name: Install all yarn packages | |
run: yarn --frozen-lockfile | |
env: | |
# https://github.com/microsoft/vscode-ripgrep#github-api-limit-note | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build select important pages | |
env: | |
# Remember, the mdn/content repo got cloned into `pwd` into a | |
# sub-folder called "mdn/content" | |
CONTENT_ROOT: "${{ github.workspace }}/mdn/content/files" | |
# Make sure it's set to something so that the build uses the | |
# Google Analytics tag which is most realistic. | |
BUILD_GOOGLE_ANALYTICS_ACCOUNT: UA-00000000-0 | |
run: | | |
yarn build:prepare | |
# BUILD_FOLDERSEARCH=mdn/kitchensink yarn build | |
BUILD_FOLDERSEARCH=web/javascript/reference/global_objects/array/foreach yarn build | |
- name: Serve and lhci | |
env: | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
run: | | |
yarn start:static-server & | |
sleep 1 | |
curl --retry-connrefused --retry 5 \ | |
http://localhost:5042/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach/ > /dev/null | |
npm install -g @lhci/cli@next | |
# Note, we can supply multiple `--collect.url=...` to have lhci test | |
# a variety of URLs and then assume a average (or median?) across them. | |
# All options for "collect" here: | |
# https://github.com/GoogleChrome/lighthouse-ci/blob/master/docs/configuration.md#collect | |
lhci autorun \ | |
--upload.target=temporary-public-storage \ | |
--collect.url="http://localhost:5042/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach/" | |
# TODO (as of Oct 2020) | |
# Once our Lighthouse score starts to not be so terrible, we can start | |
# adding assertions here. | |
# See https://github.com/GoogleChrome/lighthouse-ci/blob/master/docs/configuration.md#categories |