-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (42 loc) · 1.23 KB
/
ci.yml
File metadata and controls
52 lines (42 loc) · 1.23 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
name: System CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-test-lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x] # Change or add more versions as needed
steps:
- name: Checkout repository
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: |
npm ci
npm ci --prefix server
npm ci --prefix client
- name: Build shared types
run: tsc --build src/types
- name: Build all components
run: npm run build:all
- name: Lint code
run: npm run lint:all
continue-on-error: true
- name: Upload build artifacts
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: build-artifacts
path: |
dist/
server/dist/
client/dist/
src/types/dist/
retention-days: 14