File tree 2 files changed +37
-9
lines changed
2 files changed +37
-9
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ name: Preview SDKs
3
3
on :
4
4
pull_request :
5
5
paths :
6
- - ' fern/**'
7
- - ' openapi.json'
8
- - ' openapi-overrides.yml'
6
+ - " fern/**"
7
+ - " openapi.json"
8
+ - " openapi-overrides.yml"
9
9
10
10
jobs :
11
11
preview-typescript :
33
33
cd fern/apis/api/.preview/fern-typescript-node-sdk
34
34
yarn install
35
35
yarn build
36
-
37
36
38
37
preview-python :
39
38
runs-on : ubuntu-latest
@@ -47,12 +46,12 @@ jobs:
47
46
- name : Download Fern
48
47
run : npm install -g fern-api
49
48
50
- - name : Preview Python SDK
49
+ - name : Preview Python SDK
51
50
env :
52
51
FERN_TOKEN : ${{ secrets.FERN_TOKEN }}
53
52
run : |
54
53
fern generate --api api --group python-sdk --preview --log-level debug
55
-
54
+
56
55
- name : Set up python
57
56
uses : actions/setup-python@v4
58
57
with :
63
62
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
64
63
65
64
- name : Compile
66
- run : |
65
+ run : |
67
66
cd fern/apis/api/.preview/fern-python-sdk
68
67
poetry install
69
- poetry run mypy .
68
+ poetry run mypy .
69
+
70
+ preview-go :
71
+ runs-on : ubuntu-latest
72
+ steps :
73
+ - name : Checkout repo
74
+ uses : actions/checkout@v4
75
+
76
+ - name : Setup node
77
+ uses : actions/setup-node@v3
78
+
79
+ - name : Download Fern
80
+ run : npm install -g fern-api
81
+
82
+ - name : Preview Go SDK
83
+ env :
84
+ FERN_TOKEN : ${{ secrets.FERN_TOKEN }}
85
+ run : |
86
+ fern generate --api api --group go-sdk --preview --log-level debug
87
+
88
+ - name : Set up Go
89
+ uses : actions/setup-go@v4
90
+ with :
91
+ go-version : " 1.21"
92
+
93
+ - name : Compile
94
+ run : |
95
+ cd fern/apis/api/.preview/fern-go-sdk
96
+ go mod tidy
97
+ go build ./...
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ groups:
64
64
go-sdk :
65
65
generators :
66
66
- name : fernapi/fern-go-sdk
67
- version : 0.37.2
67
+ version : 0.37.4
68
68
disable-examples : true
69
69
api :
70
70
settings :
You can’t perform that action at this time.
0 commit comments