1313 uses : actions/checkout@v4
1414
1515 - name : Setup node
16- uses : actions/setup-node@v3
16+ uses : actions/setup-node@v6
17+
18+ - name : Install pnpm
19+ uses : pnpm/action-setup@v4
1720
1821 - name : Download Fern
1922 run : npm install -g fern-api
3033 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3134 run : |
3235 cd fern/.preview/fern-typescript-sdk
33- pnpm install
36+ pnpm install --frozen-lockfile
3437 pnpm build
3538
3639 preview-java :
6063 run : |
6164 cd fern/.preview/fern-java-sdk
6265 ./gradlew assemble
66+
67+ preview-python :
68+ runs-on : ubuntu-latest
69+ steps :
70+ - name : Checkout repo
71+ uses : actions/checkout@v4
72+
73+ - name : Set up python
74+ uses : actions/setup-python@v4
75+ with :
76+ python-version : 3.9
77+
78+ - name : Bootstrap poetry
79+ run : |
80+ curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
81+
82+ - name : Download Fern
83+ run : npm install -g fern-api
84+
85+ - name : Generate Preview
86+ env :
87+ FERN_TOKEN : ${{ secrets.FERN_TOKEN }}
88+ run : |
89+ fern generate --group python-sdk --preview --log-level debug
90+
91+ - name : Build
92+ env :
93+ FERN_TOKEN : ${{ secrets.FERN_TOKEN }}
94+ run : |
95+ cd fern/.preview/fern-python-sdk
96+ poetry install
97+ poetry run mypy .
98+
99+ preview-php :
100+ runs-on : ubuntu-latest
101+
102+ steps :
103+ - name : Checkout repo
104+ uses : actions/checkout@v4
105+
106+ - name : Setup PHP
107+ uses : shivammathur/setup-php@v2
108+ with :
109+ php-version : " 8.1"
110+
111+ - name : Download Fern
112+ run : npm install -g fern-api
113+
114+ - name : Generate Preview
115+ env :
116+ FERN_TOKEN : ${{ secrets.FERN_TOKEN }}
117+ run : |
118+ fern generate --group php-sdk --preview --log-level debug
119+
120+ - name : Build
121+ env :
122+ FERN_TOKEN : ${{ secrets.FERN_TOKEN }}
123+ run : |
124+ cd fern/.preview/fern-php-sdk
125+ ./gradlew assemble
126+ composer install
127+ composer build
128+ composer analyze
0 commit comments