-
-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (35 loc) · 867 Bytes
/
unit-test.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
41
42
43
name: Unit tests
on:
pull_request:
push:
branches:
- main
- beta
jobs:
lint:
name: Run unit tests
runs-on: ubuntu-latest
steps:
- name: Setup pnpm 🛠️
uses: pnpm/action-setup@v2
with:
version: 8
- name: Checkout ✅
uses: actions/checkout@v4
- name: Setup Node.js 🔧
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "pnpm"
- name: Install dependencies 🛠️
run: pnpm i
- name: Run Vitest 🧪
run: pnpm run test:unit
- name: Create coverage report 📝
run: pnpm run test:unit:coverage
- name: Codecov
uses: codecov/codecov-action@v4
with:
directory: ./tests/unit/coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}