Skip to content

Add vitest and fix memory leak #2

Add vitest and fix memory leak

Add vitest and fix memory leak #2

Workflow file for this run

name: CI
on:
pull_request:
branches:
- master
- beta
concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
test:
name: Lint, unit, build
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- name: Upgrade npm
# The lock file is generated by npm >= 11 locally; bump the runner's
# npm so its lock-file expectations match before running npm ci.
run: npm install -g npm@latest
- name: Install dependencies
run: npm ci
- name: Test
run: npm run test