-
-
Notifications
You must be signed in to change notification settings - Fork 127
40 lines (32 loc) · 936 Bytes
/
run-vitest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Run Vitest Tests
on:
push: # Trigger on push to any branch
pull_request: # Trigger on pull request to any branch
jobs:
vitest:
name: Run Vitest
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20] # Test against multiple Node.js versions
steps:
# Checkout the repository code
- uses: actions/checkout@v4
# Install pnpm
- name: Install pnpm
uses: pnpm/action-setup@v4
# Use Node.js
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
# Install dependencies for all packages
- name: Install dependencies
run: pnpm install
# Build all packages except docs
- name: Build all packages
run: pnpm build
# Run Vitest tests
- name: Run Vitest tests
run: pnpm test