-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (32 loc) · 997 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
36
37
38
39
40
41
42
43
44
45
name: CI
# Pnpm setup based on https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CI: true
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node and PNPM
uses: ./.github/composite-actions/setup
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Build packages
run: pnpm build:pkg
- name: Generate documentation
run: pnpm doc:generate
- name: Build sample apps
run: pnpm build:apps
- name: Lint packages
run: pnpm lint
- name: Test packages
run: pnpm test