-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (30 loc) · 822 Bytes
/
build.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: build
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 20.x]
zustand: [latest, next] # [latest, 4.2.0, 4.0.0, next]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
run_install: false
- name: Install Dependencies
run: pnpm install
- name: Install Zustand ${{ matrix.zustand }}
run: pnpm add zustand@${{ matrix.zustand }} -w
- name: Build
run: pnpm run build
- name: Test
run: pnpm run test:ci