-
Notifications
You must be signed in to change notification settings - Fork 20
51 lines (39 loc) · 963 Bytes
/
ci.yml
File metadata and controls
51 lines (39 loc) · 963 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Typecheck
run: pnpm -w typecheck
- name: Lint
run: pnpm -w lint
- name: Build
run: pnpm -w build
env:
NODE_OPTIONS: --max-old-space-size=8192
- name: Knip
run: pnpm --filter @btst/stack run knip --reporter github-actions
- name: Test
run: pnpm -w test