-
-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (46 loc) · 1.72 KB
/
ci.yaml
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
name: Continuos Integration
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build packages
run: |
pnpm --no-bail --filter='./packages/types' build \
&& pnpm --no-bail --filter='./packages/common' build \
&& pnpm --no-bail --filter='./packages/entrypoint' build \
&& pnpm --no-bail --filter='./packages/validation' build \
&& pnpm --no-bail --filter='./packages/http' build \
&& pnpm --no-bail --filter='./packages/node-http' build \
&& pnpm --no-bail --filter='./packages/access-control' build \
&& pnpm --no-bail --filter='./packages/security' build \
&& pnpm --no-bail --filter='./packages/api' build \
&& pnpm --no-bail --filter='./packages/builtins' build \
&& pnpm --no-bail --filter='./packages/server' build \
&& pnpm --no-bail --filter='./packages/aeria' build \
&& pnpm --no-bail --filter='./packages/aeria-build' build:build
- name: Patch node_modules
run: |
find packages -mindepth 1 -maxdepth 1 \
-exec bash -c 'a={}; cp -r $a/dist node_modules/@aeriajs/${a//packages\//} 2>/dev/null || true' \;
cp -r packages node_modules/@aeriajs
- name: Build playground
run: |
cd playground
pnpm install .
pnpm build
- name: Run tests
run: pnpm -r test