Skip to content

Commit

Permalink
move fern config to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoralez committed Apr 25, 2024
1 parent 4af5850 commit f05e0cc
Show file tree
Hide file tree
Showing 4 changed files with 5,757 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/fern-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Fern check

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
fern-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v4

- name: Install fern
run: npm install -g fern-api

- name: Generate code
run: fern generate --group publish --local --log-level=debug

- name: Copy files
run: cp -r generated/client.py generated/types generated/errors generated/core nixtla

- name: Verify no changes were made
run: if git diff --exit-code; then echo "No changes"; else echo "Changes were made"; exit 1; fi
4 changes: 4 additions & 0 deletions fern/fern.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"organization": "nixtla",
"version": "0.22.0"
}
14 changes: 14 additions & 0 deletions fern/generators.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
groups:
publish:
generators:
- name: fernapi/fern-python-sdk
version: 1.1.0-rc4
output:
location: local-file-system
path: ../generated
config:
client_class_name: Nixtla
package_name: nixtla
flat_layout: true
pydantic_config:
version: both
Loading

0 comments on commit f05e0cc

Please sign in to comment.