Skip to content

chore(deps): update dependency vitest to v2 #4494

chore(deps): update dependency vitest to v2

chore(deps): update dependency vitest to v2 #4494

Workflow file for this run

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/setup-node@v4.0.2
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/setup-node@v4.0.2
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