-
-
Notifications
You must be signed in to change notification settings - Fork 41
35 lines (33 loc) · 887 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
name: Test
on:
push:
branches:
- "**"
pull_request_target:
types:
- opened
- reopened
- edited
- synchronize
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [20]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm submodules
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- run: pnpm install
- run: pnpm run build
- run: pnpm test