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
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ runs:
go-version: ${{ inputs.go-version }}
- name: Install project tools and dependencies
shell: bash
run: make project-tools
run: make project-tools
8 changes: 8 additions & 0 deletions .github/actions/build/python/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Build
description: "Build tools"
runs:
using: "composite"
steps:
- name: Install project tools and dependencies
shell: bash
run: make project-tools LANGUAGE=python
16 changes: 7 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build
uses: ./.github/actions/build/go
with:
go-version: ${{ env.GO_VERSION_BUILD }}
- name: Generate SDK
Expand Down Expand Up @@ -63,29 +63,27 @@ jobs:
distribution: "temurin"
java-version: ${{ env.JAVA_VERSION }}
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build
with:
go-version: ${{ env.GO_VERSION_BUILD }}
uses: ./.github/actions/build/python
- name: Generate SDK
uses: ./.github/actions/generate-sdk/python
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install core
- name: Install core
run: |
pip install poetry
poetry config virtualenvs.create false
git clone https://github.com/stackitcloud/stackit-sdk-python-core.git core
cd core;make install;
- name: Install sdk
working-directory: ./sdk-repo-updated
run: make install-dev
- name: Lint
run: make install-dev
- name: Lint
working-directory: ./sdk-repo-updated
run: make lint
run: make lint
- name: Test
working-directory: ./sdk-repo-updated
run: make test
26 changes: 12 additions & 14 deletions .github/workflows/sdk-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
workflow_dispatch:

env:
GO_VERSION: '1.22'
JAVA_VERSION: '11'
GO_VERSION: "1.22"
JAVA_VERSION: "11"

jobs:
main-go:
Expand All @@ -23,22 +23,22 @@ jobs:
- name: Install Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
distribution: "temurin"
java-version: ${{ env.JAVA_VERSION }}
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build
uses: ./.github/actions/build/go
with:
go-version: ${{ env.GO_VERSION }}
- name: Generate SDK
uses: ./.github/actions/generate-sdk/go
- name: Push SDK
env:
GH_REPO: 'stackitcloud/stackit-sdk-go'
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 }})"
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 @@ -51,19 +51,17 @@ jobs:
- name: Install Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
distribution: "temurin"
java-version: ${{ env.JAVA_VERSION }}
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build
with:
go-version: ${{ env.GO_VERSION }}
uses: ./.github/actions/build/python
- name: Generate SDK
uses: ./.github/actions/generate-sdk/python
- name: Push SDK
env:
GH_REPO: 'stackitcloud/stackit-sdk-python'
env:
GH_REPO: "stackitcloud/stackit-sdk-python"
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 }})" "[email protected]:stackitcloud/stackit-sdk-python.git" "python"
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 }})" "[email protected]:stackitcloud/stackit-sdk-python.git" "python"
Loading