Skip to content

Commit 1550324

Browse files
andreyorstryukzakPanthevmrublag-hs
committed
Implement aidbox-client
Co-authored-by: Aleksandr Penskoi <alexandr.penskoi@health-samurai.io> Co-authored-by: Panthevm <panthevm@yandex.ru> Co-authored-by: Vasilii Kupriakov <vasiliy.kupryakov@health-samurai.io>
1 parent 91c4f18 commit 1550324

41 files changed

Lines changed: 3468 additions & 126 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Test Aidbox Client
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
e2e:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Install pnpm
15+
uses: pnpm/action-setup@v4
16+
- name: Install node
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 24
20+
cache: "pnpm"
21+
22+
- name: Install dependencies
23+
run: pnpm install --frozen-lockfile
24+
working-directory: packages/aidbox-client
25+
26+
- name: Activate Aidbox
27+
run: |
28+
cat > docker-compose.override.yml << EOF
29+
services:
30+
aidbox:
31+
environment:
32+
BOX_LICENSE: ${{ secrets.BOX_LICENSE }}
33+
EOF
34+
working-directory: packages/aidbox-client
35+
36+
- name: Run aidbox
37+
run: docker compose up --wait
38+
working-directory: packages/aidbox-client
39+
40+
- name: Run tests
41+
run: pnpm test
42+
working-directory: packages/aidbox-client

.github/workflows/common.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Aidbox TS SDK
2+
on:
3+
push:
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-24.04
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Install pnpm
11+
uses: pnpm/action-setup@v4
12+
- name: Install node
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: 24
16+
cache: "pnpm"
17+
- name: Install dependencies
18+
run: pnpm install --frozen-lockfile
19+
- name: Lint
20+
run: pnpm -r run --no-sort lint:check
21+
typecheck:
22+
runs-on: ubuntu-24.04
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Install pnpm
26+
uses: pnpm/action-setup@v4
27+
- name: Install node
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: 24
31+
cache: "pnpm"
32+
- name: Install dependencies
33+
run: pnpm install --frozen-lockfile
34+
- name: Build
35+
run: pnpm -r run --sort build
36+
- name: Type check
37+
run: pnpm -r run --no-sort tsc:check

.github/workflows/react-components.yaml

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -3,73 +3,7 @@ on:
33
push:
44

55
jobs:
6-
prepare:
7-
runs-on: ubuntu-24.04
8-
steps:
9-
- uses: actions/checkout@v4
10-
- name: Install pnpm
11-
uses: pnpm/action-setup@v4
12-
- name: Install node
13-
uses: actions/setup-node@v4
14-
with:
15-
node-version: 24
16-
cache: "pnpm"
17-
- name: Install dependencies
18-
run: pnpm install --frozen-lockfile
19-
lint:
20-
needs: prepare
21-
runs-on: ubuntu-24.04
22-
steps:
23-
- uses: actions/checkout@v4
24-
- name: Install pnpm
25-
uses: pnpm/action-setup@v4
26-
- name: Install node
27-
uses: actions/setup-node@v4
28-
with:
29-
node-version: 24
30-
cache: "pnpm"
31-
- name: Install dependencies
32-
run: pnpm install --frozen-lockfile
33-
- name: Lint
34-
run: pnpm --filter @health-samurai/react-components run lint:check
35-
typecheck:
36-
needs: prepare
37-
runs-on: ubuntu-24.04
38-
steps:
39-
- uses: actions/checkout@v4
40-
- name: Install pnpm
41-
uses: pnpm/action-setup@v4
42-
- name: Install node
43-
uses: actions/setup-node@v4
44-
with:
45-
node-version: 24
46-
cache: "pnpm"
47-
- name: Install dependencies
48-
run: pnpm install --frozen-lockfile
49-
- name: Type check
50-
run: pnpm --filter @health-samurai/react-components run tsc:check
51-
build:
52-
needs: prepare
53-
runs-on: ubuntu-24.04
54-
steps:
55-
- uses: actions/checkout@v4
56-
- name: Install pnpm
57-
uses: pnpm/action-setup@v4
58-
- name: Install node
59-
uses: actions/setup-node@v4
60-
with:
61-
node-version: 24
62-
cache: "pnpm"
63-
- name: Install dependencies
64-
run: pnpm install --frozen-lockfile
65-
- name: Build
66-
run: pnpm --filter @health-samurai/react-components run build
676
build-storybook:
68-
needs:
69-
- prepare
70-
- lint
71-
- typecheck
72-
- build
737
runs-on: ubuntu-24.04
748
steps:
759
- uses: actions/checkout@v4

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Install dependencies
3434
run: pnpm install --frozen-lockfile
3535
- name: Build
36-
run: pnpm -r run build
36+
run: pnpm -r run --sort build
3737
- name: Publish
3838
run: |
3939
pnpm -r publish --tag ${{ github.event.inputs.dist_tag }} --publish-branch master

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"workspaces": [
88
"packages/*"
99
],
10-
"packageManager": "pnpm@10.14.0",
10+
"packageManager": "pnpm@10.21.0",
1111
"devDependencies": {
1212
"@biomejs/biome": "2.1.3",
1313
"@swc/cli": "^0.7.8",

packages/aidbox-client/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/node_modules
2+
/dist
3+
/tmp
4+
/.codegen-cache

0 commit comments

Comments
 (0)