Skip to content

Update vitest.yml

Update vitest.yml #4

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.12.0] # Latest LTS
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 8 # Latest major
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm install
- run: pnpm build
- run: pnpm test