-
Notifications
You must be signed in to change notification settings - Fork 10
69 lines (55 loc) · 1.58 KB
/
preview-sdks.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
59
60
61
62
63
64
65
66
67
68
69
name: Preview SDKs
on:
pull_request:
paths:
- 'fern/**'
- 'openapi.json'
- 'openapi-overrides.yml'
jobs:
preview-typescript:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
- name: Download Fern
run: npm install -g fern-api
- name: Generate Preview
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: |
fern generate --api api --group ts-sdk --preview --log-level debug
- name: Compile
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: |
cd fern/apis/api/.preview/fern-typescript-node-sdk
yarn install
yarn build
preview-python:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
- name: Download Fern
run: npm install -g fern-api
- name: Preview Python SDK
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: |
fern generate --api api --group python-sdk --preview --log-level debug
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Bootstrap poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
- name: Compile
run: |
cd fern/apis/api/.preview/fern-python-sdk
poetry install
poetry run mypy .