Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.5 to 2.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](1e204e9a92...ec3a7ce113)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
54 lines
1.6 KiB
YAML
54 lines
1.6 KiB
YAML
name: Browser Tests
|
|
|
|
# **What it does**: This runs our browser tests on pull requests.
|
|
# **Why we have it**: This is the only way we currently test our browser JavaScript.
|
|
# **Who does it impact**: Docs engineering, open-source engineering contributors.
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
paths:
|
|
- '**.js'
|
|
- '**.mjs'
|
|
- '**.ts'
|
|
- '**.tsx'
|
|
- jest.config.js
|
|
- package.json
|
|
# In case something like eslint or tsc or prettier upgrades
|
|
- package-lock.json
|
|
# Ultimately, for debugging this workflow itself
|
|
- .github/workflows/browser-test.yml
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# Each of these ifs needs to be repeated at each step to make sure the required check still runs
|
|
# Even if if doesn't do anything
|
|
- name: Checkout
|
|
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
|
with:
|
|
lfs: true
|
|
- name: Checkout LFS objects
|
|
run: git lfs checkout
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@04c56d2f954f1e4c69436aa54cfef261a018f458
|
|
with:
|
|
node-version: 16.13.x
|
|
cache: npm
|
|
|
|
- name: Install dependencies
|
|
env:
|
|
# This makes it so the puppeteer npm package doesn't bother
|
|
# to download a copy of chromium because it can use
|
|
# `$PUPPETEER_EXECUTABLE_PATH` from the ubuntu Action container.
|
|
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
|
|
run: npm ci --include=optional
|
|
|
|
- name: Run browser-test
|
|
run: npm run browser-test
|