-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (39 loc) · 935 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
41
name: Build
on:
pull_request:
branches:
- main
- next
push:
branches:
- main
- next
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set Node version
uses: actions/setup-node@v1
with:
node-version: 16
- uses: pnpm/[email protected]
with:
version: 7.1.7
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: pnpm install --strict-peer-dependencies=false --no-frozen-lockfile
- name: Run lint
run: pnpm lint
- name: Run format
run: pnpm format
- name: Run build
run: pnpm build
- name: Run test:typecheck
run: CI=true pnpm test:typecheck
- name: Run test
run: CI=true pnpm test