diff --git a/seed/csharp-model/seed.yml b/seed/csharp-model/seed.yml index 0fb7902b7c..6639ae4c13 100644 --- a/seed/csharp-model/seed.yml +++ b/seed/csharp-model/seed.yml @@ -5,7 +5,8 @@ changelogLocation: ../../generators/csharp/model/versions.yml buildScripts: compileScript: - - dotnet build src -c Release /p:ContinuousIntegrationBuild=true . + commands: + - dotnet build src -c Release /p:ContinuousIntegrationBuild=true . publish: preBuildCommands: diff --git a/seed/csharp-sdk/seed.yml b/seed/csharp-sdk/seed.yml index bc84fdc7b1..53f5cd1ce2 100644 --- a/seed/csharp-sdk/seed.yml +++ b/seed/csharp-sdk/seed.yml @@ -5,11 +5,14 @@ changelogLocation: ../../generators/csharp/sdk/versions.yml buildScripts: preInstallScript: - - dotnet tool restore + commands: + - dotnet tool restore compileScript: - - dotnet build src -c Release /p:ContinuousIntegrationBuild=true . + commands: + - dotnet build src -c Release /p:ContinuousIntegrationBuild=true . testScript: - - dotnet test src + commands: + - dotnet test src publish: preBuildCommands: diff --git a/seed/fastapi/seed.yml b/seed/fastapi/seed.yml index 611028ee95..c17be4a6bc 100644 --- a/seed/fastapi/seed.yml +++ b/seed/fastapi/seed.yml @@ -5,10 +5,12 @@ changelogLocation: ../../generators/python/fastapi/versions.yml buildScripts: installScript: - - poetry shell - - poetry install + commands: + - poetry shell + - poetry install compileScript: - - poetry run mypy . + commands: + - poetry run mypy . publish: workingDirectory: generators/python diff --git a/seed/go-fiber/seed.yml b/seed/go-fiber/seed.yml index f72a158839..5a9674a755 100644 --- a/seed/go-fiber/seed.yml +++ b/seed/go-fiber/seed.yml @@ -5,9 +5,11 @@ changelogLocation: ../../generators/go/fiber/versions.yml buildScripts: compileScript: - - go build -v ./... + commands: + - go build -v ./... testScript: - - go test -v ./... + commands: + - go test -v ./... publish: workingDirectory: generators/go diff --git a/seed/go-model/seed.yml b/seed/go-model/seed.yml index 1b7bd73230..042d4448df 100644 --- a/seed/go-model/seed.yml +++ b/seed/go-model/seed.yml @@ -5,9 +5,11 @@ changelogLocation: ../../generators/go/model/versions.yml buildScripts: compileScript: - - go build -v ./... + commands: + - go build -v ./... testScript: - - go test -v ./... + commands: + - go test -v ./... publish: workingDirectory: generators/go diff --git a/seed/go-sdk/seed.yml b/seed/go-sdk/seed.yml index 2ca4a64552..764880c05a 100644 --- a/seed/go-sdk/seed.yml +++ b/seed/go-sdk/seed.yml @@ -5,9 +5,11 @@ changelogLocation: ../../generators/go/sdk/versions.yml buildScripts: compileScript: - - go build -v ./... + commands: + - go build -v ./... testScript: - - go test -v ./... + commands: + - go test -v ./... publish: workingDirectory: generators/go diff --git a/seed/java-model/seed.yml b/seed/java-model/seed.yml index adc6e588be..e5d162c4a6 100644 --- a/seed/java-model/seed.yml +++ b/seed/java-model/seed.yml @@ -5,7 +5,8 @@ image: fernapi/fern-java-model buildScripts: compileScript: - - ./gradlew compileJava + commands: + - ./gradlew compileJava publish: workingDirectory: generators/java diff --git a/seed/java-sdk/seed.yml b/seed/java-sdk/seed.yml index 732f288d55..4022578009 100644 --- a/seed/java-sdk/seed.yml +++ b/seed/java-sdk/seed.yml @@ -5,7 +5,8 @@ image: fernapi/fern-java-sdk buildScripts: compileScript: - - ./gradlew compileJava + commands: + - ./gradlew compileJava publish: workingDirectory: generators/java diff --git a/seed/pydantic/seed.yml b/seed/pydantic/seed.yml index cfe3579828..4628c15538 100644 --- a/seed/pydantic/seed.yml +++ b/seed/pydantic/seed.yml @@ -5,10 +5,12 @@ changelogLocation: ../../generators/python/pydantic/versions.yml buildScripts: installScript: - - poetry shell - - poetry install + commands: + - poetry shell + - poetry install compileScript: - - poetry run mypy . + commands: + - poetry run mypy . publish: workingDirectory: generators/python diff --git a/seed/python-sdk/seed.yml b/seed/python-sdk/seed.yml index 78878e6106..6ea6e62e5d 100644 --- a/seed/python-sdk/seed.yml +++ b/seed/python-sdk/seed.yml @@ -5,16 +5,19 @@ changelogLocation: ../../generators/python/sdk/versions.yml buildScripts: installScript: - - poetry shell - - poetry install + commands: + - poetry shell + - poetry install compileScript: - - poetry run mypy . + commands: + - poetry run mypy . testScript: # TODO: we need to acttually run the mock server tests as well # Note: not all versions of the generator have this test directory which brings in the unit tests we write # as a result, the script here only runs pytest if the directory exists, and exits 0 if it does not (e.g. just passes) - - export PYTHON_TEST_DIR="./tests/utils" - - if [ -d "$PYTHON_TEST_DIR" ]; then poetry run pytest -rP "$PYTHON_TEST_DIR"; else echo "Test directory not found. Skipping tests."; fi + commands: + - export PYTHON_TEST_DIR="./tests/utils" + - if [ -d "$PYTHON_TEST_DIR" ]; then poetry run pytest -rP "$PYTHON_TEST_DIR"; else echo "Test directory not found. Skipping tests."; fi publish: workingDirectory: generators/python diff --git a/seed/ruby-sdk/seed.yml b/seed/ruby-sdk/seed.yml index eb090e4b11..903c1b80c8 100644 --- a/seed/ruby-sdk/seed.yml +++ b/seed/ruby-sdk/seed.yml @@ -5,9 +5,11 @@ changelogLocation: ../../generators/ruby/sdk/versions.yml buildScripts: installScript: - - bundle install + commands: + - bundle install testScript: - - bundle exec rake test + commands: + - bundle exec rake test publish: preBuildCommands: diff --git a/seed/ts-express/seed.yml b/seed/ts-express/seed.yml index 40019527e7..54d416c14f 100644 --- a/seed/ts-express/seed.yml +++ b/seed/ts-express/seed.yml @@ -5,9 +5,11 @@ image: fernapi/fern-typescript-express buildScripts: installScript: - - yarn install + commands: + - yarn install compileScript: - - yarn build + commands: + - yarn build publish: versionSubstitution: "$VERSION"