-
-
Notifications
You must be signed in to change notification settings - Fork 31
33 lines (27 loc) · 826 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
name: Tests / Lint
on: [pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18, 20]
name: Run tests with Node.js ${{ matrix.node-version }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: pnpm config --global set dedupe-peer-dependents=false
- run: pnpm --filter=react-esi install
- run: pnpm --filter=react-esi run lint
- run: pnpm --filter=react-esi run typecheck
- run: pnpm --filter=react-esi run build
- run: pnpm --filter=react-esi run test