Skip to content

build(deps): update vitest monorepo to v2.1.6 #8497

build(deps): update vitest monorepo to v2.1.6

build(deps): update vitest monorepo to v2.1.6 #8497

Workflow file for this run

name: CI
on: [push, pull_request]
permissions:
contents: write
pull-requests: write
jobs:
build-and-test:
name: Build and test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout git repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "yarn"
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies with Yarn
run: yarn install --immutable
- name: Build and test
run: yarn just build lint test size
legacy-test:
name: Legacy Node.js tests
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout git repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "yarn"
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies with Yarn
run: yarn install --immutable
- name: Build
run: yarn just bundle
- name: Download Node.js v0.9.1
run: |
wget https://nodejs.org/dist/v0.9.1/node-v0.9.1-linux-x64.tar.gz
tar xf node-v0.9.1-linux-x64.tar.gz
mkdir -p $HOME/.local/bin
cp ./node-v0.9.1-linux-x64/bin/node $HOME/.local/bin/node-0.9.1
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Run tests on modern Node.js
run: node ./test/legacy.cjs
- name: Run tests on Node.js v0.9.1
run: node-0.9.1 ./test/legacy.cjs
benchmarks:
name: Benchmarks
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout git repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "yarn"
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies with Yarn
run: yarn install --immutable
- name: Prepare to run benchmarks
run: yarn just generate
- name: Run benchmarks
uses: CodSpeedHQ/action@v3
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: "yarn vitest bench --run"