forked from determined-001/orbital_stellar
-
Notifications
You must be signed in to change notification settings - Fork 0
121 lines (114 loc) · 3.28 KB
/
Copy pathci.yml
File metadata and controls
121 lines (114 loc) · 3.28 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: CI
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
changes:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
outputs:
packages: ${{ steps.filter.outputs.packages }}
web: ${{ steps.filter.outputs.web }}
steps:
- uses: actions/checkout@v7
- uses: dorny/paths-filter@v4
id: filter
with:
filters: |
packages:
- 'packages/**'
- 'tsconfig.base.json'
web:
- 'apps/web/**'
- 'packages/**'
lint:
needs: changes
if: ${{ needs.changes.outputs.packages == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Lint packages
run: pnpm lint
- name: Check formatting
run: pnpm format:check
typecheck-packages:
needs: changes
if: ${{ needs.changes.outputs.packages == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
node-version: [20, 22]
fail-fast: false
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Build pulse-core
run: pnpm tsc -p packages/pulse-core/tsconfig.json
- name: Typecheck abi-registry
run: pnpm tsc --noEmit -p packages/abi-registry/tsconfig.json
- name: Typecheck pulse-webhooks
run: pnpm tsc --noEmit -p packages/pulse-webhooks/tsconfig.json
- name: Typecheck pulse-notify
run: pnpm tsc --noEmit -p packages/pulse-notify/tsconfig.json
- name: Test packages
run: pnpm -r --if-present test
bundle-size:
needs: changes
if: ${{ needs.changes.outputs.packages == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Build pulse-core
run: pnpm tsc -p packages/pulse-core/tsconfig.json
- name: Build pulse-notify
run: pnpm tsc -p packages/pulse-notify/tsconfig.json
- name: Check bundle size
run: pnpm --filter @orbital/pulse-notify size
typecheck-web:
needs: changes
if: ${{ needs.changes.outputs.web == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Build pulse-core
run: pnpm tsc -p packages/pulse-core/tsconfig.json
- name: Typecheck apps/web
run: pnpm tsc --noEmit -p apps/web/tsconfig.json