-
-
Notifications
You must be signed in to change notification settings - Fork 6
58 lines (43 loc) · 1.5 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Ci
# Controls when the action will run. Triggers the workflow on push or pull request
on:
pull_request:
branches: ["*"]
push:
branches: ["main"]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "lint"
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
- name: Install Node.js
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
node-version: 18
cache: "pnpm"
- name: Install Dependencies
run: pnpm i --frozen-lockfile
- name: Lint Format
run: pnpm lint:prettier
- name: Check Types
run: pnpm build --filter=./packages/*
- name: Run ESLint
run: pnpm lint --filter=./packages/*
# This workflow contains a single job called "build"
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
- name: Install Node.js
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
node-version: 18
cache: "pnpm"
- name: Install Dependencies
run: pnpm i --frozen-lockfile
- name: Build Check
run: pnpm build