Skip to content

Commit

Permalink
(internal, seed): heavy rewrite of seed (#3297)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi authored Apr 21, 2024
1 parent fa4e63c commit 9c25b33
Show file tree
Hide file tree
Showing 393 changed files with 9,254 additions and 721 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:

- name: Seed Test
run: |
yarn seed:local test --workspace ruby-model
yarn seed:local test --generator ruby-model
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
env:
FORCE_COLOR: "2"
run: |
yarn seed:local test --workspace ruby-sdk
yarn seed:local test --generator ruby-sdk
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
env:
FORCE_COLOR: "2"
run: |
yarn seed:local test --workspace pydantic
yarn seed:local test --generator pydantic
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:
env:
FORCE_COLOR: "2"
run: |
yarn seed:local test --workspace python-sdk --parallel 10
yarn seed:local test --generator python-sdk --parallel 10
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
Expand Down Expand Up @@ -218,7 +218,7 @@ jobs:
env:
FORCE_COLOR: "2"
run: |
yarn seed:local test --workspace fastapi
yarn seed:local test --generator fastapi
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
Expand All @@ -243,7 +243,7 @@ jobs:
env:
FORCE_COLOR: "2"
run: |
yarn seed:local test --workspace openapi
yarn seed:local test --generator openapi
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
Expand All @@ -268,7 +268,7 @@ jobs:
env:
FORCE_COLOR: "2"
run: |
yarn seed:local test --workspace postman
yarn seed:local test --generator postman
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
Expand All @@ -293,7 +293,7 @@ jobs:
env:
FORCE_COLOR: "2"
run: |
yarn seed:local test --workspace java-sdk --parallel 10
yarn seed:local test --generator java-sdk --parallel 10
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
Expand All @@ -318,7 +318,7 @@ jobs:
env:
FORCE_COLOR: "2"
run: |
yarn seed:local test --workspace java-model --parallel 10
yarn seed:local test --generator java-model --parallel 10
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
Expand All @@ -343,7 +343,7 @@ jobs:
env:
FORCE_COLOR: "2"
run: |
yarn seed:local test --workspace java-spring
yarn seed:local test --generator java-spring
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
Expand All @@ -368,7 +368,7 @@ jobs:
env:
FORCE_COLOR: "2"
run: |
yarn seed:local test --workspace ts-sdk
yarn seed:local test --generator ts-sdk
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
Expand All @@ -393,7 +393,7 @@ jobs:
env:
FORCE_COLOR: "2"
run: |
yarn seed:local test --workspace ts-express --parallel 1
yarn seed:local test --generator ts-express --parallel 1
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
Expand All @@ -418,7 +418,7 @@ jobs:
env:
FORCE_COLOR: "2"
run: |
yarn seed:local test --workspace go-fiber --parallel 16
yarn seed:local test --generator go-fiber --parallel 16
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
Expand All @@ -443,7 +443,7 @@ jobs:
env:
FORCE_COLOR: "2"
run: |
yarn seed:local test --workspace go-model --parallel 16
yarn seed:local test --generator go-model --parallel 16
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
Expand All @@ -468,7 +468,7 @@ jobs:
env:
FORCE_COLOR: "2"
run: |
yarn seed:local test --workspace go-sdk --parallel 16
yarn seed:local test --generator go-sdk --parallel 16
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
Expand All @@ -493,7 +493,7 @@ jobs:
env:
FORCE_COLOR: "2"
run: |
yarn seed:local test --workspace csharp-model --parallel 16
yarn seed:local test --generator csharp-model --parallel 16
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
Expand All @@ -518,7 +518,7 @@ jobs:
env:
FORCE_COLOR: "2"
run: |
yarn seed:local test --workspace csharp-sdk --parallel 16
yarn seed:local test --generator csharp-sdk --parallel 16
- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
27 changes: 27 additions & 0 deletions packages/seed/fern/definition/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ types:
generatorType: GeneratorType
docker: string
dockerCommand: optional<DockerCommand>
local: optional<LocalBuildInfo>
customFixtureConfig:
type: optional<FixtureConfigurations>
docs: |
Expand All @@ -22,6 +23,32 @@ types:
List any fixtures that are okay to fail. For normal fixtures
just list the fixture name. For configured fixture list {fixture}:{outputFolder}.
features: optional<features.GeneratorFeatures>

LocalBuildInfo:
properties:
buildCommand:
type: string
docs: |
The command to build the generator locally.
`yarn workspace @fern-api/openapi-generator build` for example.
runCommand:
type: string
docs: |
The command to run the generator locally.
`node generators/openapi/dist/cli.cjs` for example.
DockerBuildInfo:
properties:
buildCommand:
type: string
docs: |
The command to build the generator locally.
`yarn workspace @fern-api/openapi-generator build` for example.
runCommand:
type: string
docs: |
The command to run the generator locally.
`node generators/openapi/dist/cli.cjs` for example.
DockerCommand:
discriminated: false
Expand Down
Loading

0 comments on commit 9c25b33

Please sign in to comment.