Add overrides to get Pydantic validation to pass #40
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Preview SDKs | |
on: | |
pull_request: | |
paths: | |
- 'fern/**' | |
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 --group ts-sdk --preview --log-level debug | |
- name: Compile | |
env: | |
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
cd fern/.preview/fern-typescript-node-sdk | |
yarn install | |
yarn build | |
preview-java: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v1 | |
with: | |
java-version: "11" | |
architecture: x64 | |
- name: Download Fern | |
run: npm install -g fern-api | |
- name: Generate Preview | |
env: | |
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
run: | | |
fern generate --group java-sdk --preview --log-level debug | |
- name: Build | |
env: | |
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
run: | | |
cd fern/.preview/fern-java-sdk | |
./gradlew assemble |