Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
16 changes: 0 additions & 16 deletions .github/actions/build/go/action.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/actions/build/python/action.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/actions/generate-sdk/go/action.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/actions/generate-sdk/python/action.yaml

This file was deleted.

90 changes: 66 additions & 24 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI Workflow
on: [pull_request, workflow_dispatch]

env:
GO_VERSION_BUILD: "1.22"
GO_VERSION_BUILD: "1.25"
JAVA_VERSION: "11"

jobs:
Expand All @@ -20,18 +20,27 @@ jobs:
with:
distribution: "temurin"
java-version: ${{ env.JAVA_VERSION }}

- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build/go
with:
go-version: ${{ env.GO_VERSION_BUILD }}
- name: Generate SDK
uses: ./.github/actions/generate-sdk/go
- name: Install Go ${{ matrix.go-version }}

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Install project tools and dependencies
shell: bash
run: make project-tools

- name: Download OAS
shell: bash
run: make download-oas

- name: Generate SDK
shell: bash
run: make generate-go-sdk

- name: Test
working-directory: ./sdk-repo-updated
run: make test skip-non-generated-files=true
Expand All @@ -48,21 +57,35 @@ jobs:
with:
distribution: "temurin"
java-version: ${{ env.JAVA_VERSION }}

- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build/go
with:
go-version: ${{ env.GO_VERSION_BUILD }}
- name: Generate SDK
uses: ./.github/actions/generate-sdk/go
- name: Install Go ${{ env.GO_VERSION_BUILD }}

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION_BUILD }}

- name: Install project tools and dependencies
shell: bash
run: make project-tools

- name: Download OAS
shell: bash
run: make download-oas

- name: Generate SDK
shell: bash
run: make generate-go-sdk

- name: Remove waiters
working-directory: ./sdk-repo-updated
run: rm -r services/*/wait

- name: Install SDK project tools and dependencies
working-directory: ./sdk-repo-updated
run: make project-tools

- name: Lint
working-directory: ./sdk-repo-updated
run: make lint skip-non-generated-files=true
Expand All @@ -80,29 +103,45 @@ jobs:
with:
distribution: "temurin"
java-version: ${{ env.JAVA_VERSION }}

- name: Checkout
uses: actions/checkout@v4

- name: install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.10.4"
- name: Build
uses: ./.github/actions/build/python

- name: Install project tools and dependencies
shell: bash
run: |
python -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
make project-tools LANGUAGE=python

- name: Download OAS
shell: bash
run: make download-oas

- name: Generate SDK
uses: ./.github/actions/generate-sdk/python
with:
python-version: ${{ matrix.python-version }}
shell: bash
run: make generate-python-sdk

- name: install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.10.4"
python-version: ${{ matrix.python-version }}
- name: Install sdk

- name: Install SDK
working-directory: ./sdk-repo-updated
run: make install-dev

- name: Lint
working-directory: ./sdk-repo-updated
run: make lint

- name: Test
working-directory: ./sdk-repo-updated
run: make test
Expand All @@ -119,17 +158,20 @@ jobs:
with:
distribution: "temurin"
java-version: ${{ matrix.java-version }}

- name: Checkout
uses: actions/checkout@v5

- name: Download OAS
run: make download-oas

- name: Generate SDK
run: make generate-sdk
env:
LANGUAGE: java
run: make generate-java-sdk

- name: Lint
working-directory: ./sdk-repo-updated
run: make lint

- name: Test
working-directory: ./sdk-repo-updated
run: make test
50 changes: 43 additions & 7 deletions .github/workflows/sdk-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

env:
GO_VERSION: "1.22"
GO_VERSION: "1.25"
JAVA_VERSION: "25"

jobs:
Expand All @@ -23,25 +23,40 @@ jobs:
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: ${{ vars.SSH_KNOWN_HOSTS }}

- name: Install Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: ${{ env.JAVA_VERSION }}

- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build/go

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

- name: Install project tools and dependencies
shell: bash
run: make project-tools

- name: Download OAS
shell: bash
run: make download-oas

- name: Generate SDK
uses: ./.github/actions/generate-sdk/go
shell: bash
run: make generate-sdk

- name: Push SDK
env:
GH_REPO: "stackitcloud/stackit-sdk-go"
GH_TOKEN: ${{ secrets.SDK_PR_TOKEN }}
run: |
scripts/sdk-create-pr.sh "generator-bot-${{ github.run_id }}" "Generated from GitHub run [${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"

main-python:
name: "[Python] Update SDK Repo"
runs-on: ubuntu-latest
Expand All @@ -54,21 +69,37 @@ jobs:
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: ${{ vars.SSH_KNOWN_HOSTS }}

- name: Install Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: ${{ env.JAVA_VERSION }}

- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build/python

- name: Install project tools and dependencies
shell: bash
run: |
python -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
make project-tools LANGUAGE=python

- name: install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.10.4"

- name: Download OAS
shell: bash
run: make download-oas

- name: Generate SDK
uses: ./.github/actions/generate-sdk/python
shell: bash
run: make generate-sdk LANGUAGE=python

- name: Push SDK
env:
GH_REPO: "stackitcloud/stackit-sdk-python"
Expand All @@ -89,19 +120,24 @@ jobs:
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: ${{ vars.SSH_KNOWN_HOSTS }}

- name: Install Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: ${{ env.JAVA_VERSION }}

- name: Checkout
uses: actions/checkout@v5

- name: Download OAS
run: make download-oas

- name: Generate SDK
run: make generate-sdk
env:
LANGUAGE: java

- name: Push SDK
env:
GH_REPO: "stackitcloud/stackit-sdk-java"
Expand Down
Loading