build(deps): update vitest monorepo to v2.1.4 #8260
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: 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 |