-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (45 loc) · 1008 Bytes
/
lint-and-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
42
43
44
45
46
47
48
49
name: Lint and test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
typescript-build-and-test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
node:
- 12
- 14
- 16
- 18
pnpm:
- 6
- 7 # latest
exclude:
- node: 12
pnpm: 7
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: ${{ matrix.pnpm }}
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: pnpm
cache-dependency-path: ts/pnpm-lock.yaml
- run: pnpm install --frozen-lockfile
working-directory: ./ts
- run: pnpm test
working-directory: ./ts
- run: pnpm lint
working-directory: ./ts
- run: pnpm format:check
working-directory: ./ts
- run: pnpm build:all
working-directory: ./ts