-
Notifications
You must be signed in to change notification settings - Fork 56
43 lines (35 loc) · 947 Bytes
/
test-unit.yml
File metadata and controls
43 lines (35 loc) · 947 Bytes
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: Test
on: [push]
jobs:
unit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
project: [core, web, backend, scripts]
steps:
- name: Check out Git repository
uses: actions/checkout@v6
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: 24
- name: Install Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.18
- name: Cache Bun dependencies
uses: actions/cache@v5
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Install Dependencies
run: |
bun install --frozen-lockfile
- name: Run ${{ matrix.project }} tests
env:
TZ: ${{ vars.TZ }}
run: |
bun run test:${{ matrix.project }}