-
Notifications
You must be signed in to change notification settings - Fork 6
33 lines (30 loc) · 845 Bytes
/
ci.yaml
File metadata and controls
33 lines (30 loc) · 845 Bytes
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: CI
on:
pull_request:
jobs:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
cache: pnpm
node-version-file: .nvmrc
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm --filter="...[origin/${{ github.base_ref }}]" lint
- name: Test
run: pnpm --filter="...[origin/${{ github.base_ref }}]" test
- name: Type check
run: pnpm --filter="...[origin/${{ github.base_ref }}]" typecheck
- name: Build
run: pnpm --filter="...[origin/${{ github.base_ref }}]" build