-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (33 loc) · 925 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
name: CI
on:
push:
branches: ["main"]
pull_request:
branches:
- "**"
jobs:
checks:
name: Checks
runs-on: ubuntu-latest
strategy:
matrix:
command: ["check-types", "lint", "test"]
# We want a comprehensive view of checks, so let them all run even if one fails
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
- name: Setup node
uses: actions/setup-node@v4
with:
cache: "pnpm"
node-version-file: ".nvmrc"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build all
# The plugin packages depend on the parser. This currently works
# incidentally, and will be improved when we use a dedicated monorepo
# task runner.
run: pnpm run -r build
- run: pnpm ${{ matrix.command }}