-
Notifications
You must be signed in to change notification settings - Fork 25
30 lines (29 loc) · 831 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
name: ci
on:
pull_request:
push:
branches:
- main
jobs:
build:
strategy:
matrix:
node: [18.x, 20.x, 22.x]
platform: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
# Pulls version from packageManager key in package.json
- name: Setup pnpm
uses: pnpm/action-setup@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- run: pnpm install
- name: Build
run: pnpm compile
- name: Test
run: pnpm test
- name: Check formatting
run: pnpm format:check