-
Notifications
You must be signed in to change notification settings - Fork 31
36 lines (36 loc) · 884 Bytes
/
ci.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
name: CI
on:
push:
branches-ignore:
- reactivity-v2
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
node: ["16", "18", "20"]
steps:
- uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run build
run: pnpm run build
- name: Lint source code
run: pnpm run lint --max-warnings=0
- name: Run all tests
run: pnpm run test:all
- name: Sanity check standalone build
working-directory: standalone
run: |
pnpm install --frozen-lockfile
pnpm build
pnpm test