chore(deps): update dependency playwright to v1.45.0 #4444
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: CI | |
on: | |
push: | |
branches: | |
- 'main' | |
tags: | |
- 'v*' | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: Test | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/[email protected] | |
with: | |
node-version: 20 | |
cache: yarn | |
# See https://github.com/yarnpkg/yarn/issues/1874 | |
# https://github.com/yarnpkg/yarn/issues/3728 | |
- name: Pre-install node-gyp | |
run: |- | |
npm install -g node-gyp | |
node-gyp install | |
# Check the build works. No need to run the build:edge target since it's | |
# almost identical to build:chrome | |
- name: Build | |
run: |- | |
yarn install --frozen-lockfile | |
yarn build:firefox | |
yarn build:chrome | |
yarn build:thunderbird | |
- name: Run tests | |
env: | |
CI: true | |
run: yarn test | |
# Check packaging doesn't error. Again, no need to worry about the | |
# package:edge target. | |
- name: Package | |
run: |- | |
yarn package:firefox | |
yarn package:chrome | |
- name: Verify cosmos setup | |
run: yarn cosmos-export | |
lint: | |
runs-on: ubuntu-latest | |
name: Lint | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/[email protected] | |
with: | |
node-version: 20 | |
cache: yarn | |
# See https://github.com/yarnpkg/yarn/issues/1874 | |
# https://github.com/yarnpkg/yarn/issues/3728 | |
- name: Pre-install node-gyp | |
run: |- | |
npm install -g node-gyp | |
node-gyp install | |
- name: Install | |
run: yarn install --frozen-lockfile | |
- name: Lint | |
run: yarn eslint scripts src tests "*.{cjs,js,json,ts}" | |
- name: Check formatting | |
run: yarn prettier --check _locales css scripts src tests "*.{js,json,md,ts}" | |
- name: knip | |
run: yarn knip |