-
Notifications
You must be signed in to change notification settings - Fork 15
41 lines (34 loc) · 808 Bytes
/
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
name: Test Code
on:
push:
branches:
- dev
jobs:
test-code:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [18, 20]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setting Up Pnpm
uses: pnpm/action-setup@v4
with:
version: 8
- name: Setting Up Node
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ matrix.node-version }}
- name: Installing Project Dependencies
run: pnpm install
- name: Building Project
run: pnpm build
- name: Running Test
run: pnpm test
env:
CLUSTERING: false
PORT: 3000