Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions generators/csharp/base/src/asIs/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ jobs:
run: |
dotnet tool restore

- name: Log in to Docker Hub
if: $\{{ env.DOCKER_USERNAME != '' && env.DOCKER_PASSWORD != '' }}
uses: docker/login-action@v3
with:
username: $\{{ env.DOCKER_USERNAME }}
password: $\{{ env.DOCKER_PASSWORD }}
env:
DOCKER_USERNAME: $\{{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: $\{{ secrets.DOCKER_PASSWORD }}

- name: Restore dependencies
run: dotnet restore <%= testProjectFilePath %>

Expand Down
8 changes: 8 additions & 0 deletions generators/csharp/sdk/versions.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# yaml-language-server: $schema=../../../fern-versions-yml.schema.json
- version: 2.11.3
changelogEntry:
- summary: |
Add optional Docker Hub login step to generated CI workflow for wiremock tests to avoid rate limits.
type: chore
createdAt: "2025-12-09"
irVersion: 61

- version: 2.11.2
changelogEntry:
- summary: |
Expand Down
10 changes: 10 additions & 0 deletions generators/go/internal/writer/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ jobs:
- name: Set up go
uses: actions/setup-go@v4

- name: Log in to Docker Hub
if: ${{ env.DOCKER_USERNAME != '' && env.DOCKER_PASSWORD != '' }}
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to avoid touching the user-facing ci.yml files for this one. Too big of a change.

Can we address the change with how we run seed instead?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it—I've reverted the generator CI template and versions.yml changes, and instead added a Docker Hub login step to the seed.yml workflow for the wiremock-using SDKs (go-sdk, python-sdk, php-sdk, rust-sdk, csharp-sdk). This keeps the change scoped to how we run seed internally, without modifying user-facing CI templates.


- name: Setup wiremock server
run: |
if [ -f wiremock/docker-compose.test.yml ]; then docker compose -f wiremock/docker-compose.test.yml down && docker compose -f wiremock/docker-compose.test.yml up -d; fi
Expand Down
8 changes: 8 additions & 0 deletions generators/go/sdk/versions.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# yaml-language-server: $schema=../../../fern-versions-yml.schema.json

- version: 1.18.5
changelogEntry:
- summary: |
Add optional Docker Hub login step to generated CI workflow for wiremock tests to avoid rate limits.
type: chore
createdAt: "2025-12-09"
irVersion: 60

- version: 1.18.4
changelogEntry:
- summary: |
Expand Down
10 changes: 10 additions & 0 deletions generators/php/base/src/asIs/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ jobs:
with:
php-version: "8.1"

- name: Log in to Docker Hub
if: ${{ env.DOCKER_USERNAME != '' && env.DOCKER_PASSWORD != '' }}
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

- name: Install tools
run: |
composer install
Expand Down
8 changes: 8 additions & 0 deletions generators/php/sdk/versions.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# yaml-language-server: $schema=../../../fern-versions-yml.schema.json

- version: 1.25.1
changelogEntry:
- summary: |
Add optional Docker Hub login step to generated CI workflow for wiremock tests to avoid rate limits.
type: chore
createdAt: "2025-12-09"
irVersion: 62

- version: 1.25.0
changelogEntry:
- summary: |
Expand Down
8 changes: 8 additions & 0 deletions generators/python/sdk/versions.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# yaml-language-server: $schema=../../../fern-versions-yml.schema.json
# For unreleased changes, use unreleased.yml
- version: 4.43.1
changelogEntry:
- summary: |
Add optional Docker Hub login step to generated CI workflow for wiremock tests to avoid rate limits.
type: chore
createdAt: "2025-12-09"
irVersion: 61

- version: 4.43.0
changelogEntry:
- summary: |
Expand Down
18 changes: 18 additions & 0 deletions generators/python/src/fern_python/cli/abstract_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,15 @@ def _get_github_workflow_legacy(self, output_mode: GithubOutputMode, write_unit_
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
- name: Install dependencies
run: poetry install
- name: Log in to Docker Hub
if: ${{ env.DOCKER_USERNAME != '' && env.DOCKER_PASSWORD != '' }}
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
"""
if write_unit_tests:
workflow_yaml += """
Expand Down Expand Up @@ -423,6 +432,15 @@ def _get_github_workflow(self, output_mode: GithubOutputMode, write_unit_tests:
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
- name: Install dependencies
run: poetry install
- name: Log in to Docker Hub
if: ${{ env.DOCKER_USERNAME != '' && env.DOCKER_PASSWORD != '' }}
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
"""
if write_unit_tests:
workflow_yaml += """
Expand Down
12 changes: 11 additions & 1 deletion generators/rust/base/src/asIs/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ jobs:
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Log in to Docker Hub
if: ${{ env.DOCKER_USERNAME != '' && env.DOCKER_PASSWORD != '' }}
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

- name: Test
run: cargo test
{{PUBLISH_WORKFLOW}}
{{PUBLISH_WORKFLOW}}
8 changes: 8 additions & 0 deletions generators/rust/sdk/versions.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# yaml-language-server: $schema=../../../fern-versions-yml.schema.json

- version: 0.13.5
changelogEntry:
- summary: |
Add optional Docker Hub login step to generated CI workflow for wiremock tests to avoid rate limits.
type: chore
createdAt: "2025-12-09"
irVersion: 61

- version: 0.13.4
createdAt: "2025-12-02"
changelogEntry:
Expand Down
Loading