-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (36 loc) · 1.06 KB
/
tests-unit.yml
File metadata and controls
38 lines (36 loc) · 1.06 KB
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
name: 'Tests (Unit)'
on:
pull_request:
branches: [main, master]
types: [opened, synchronize, ready_for_review]
paths:
- '.github/workflows/tests-unit.yml'
- 'package.json'
- 'packages/app/**'
- 'packages/constants/**'
- 'packages/db/**'
- 'pnpm-lock.yaml'
- 'pnpm-workspace.yaml'
- 'tsconfig.json'
jobs:
vitest:
if: ${{ !github.event.pull_request.draft }}
timeout-minutes: 10
runs-on: blacksmith-4vcpu-ubuntu-2404
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '24'
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
env:
CYPRESS_INSTALL_BINARY: '0'
- name: Typecheck
run: pnpm typecheck
- name: Unit tests
run: pnpm test:unit