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
3 changes: 3 additions & 0 deletions .github/workflows/client-dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ on:
jobs:
detect-changes:
runs-on: ubuntu-latest
timeout-minutes: 3
outputs:
should_regenerate: ${{ steps.check.outputs.should_regenerate }}
should_version_bump: ${{ steps.check.outputs.should_version_bump }}
Expand Down Expand Up @@ -108,6 +109,7 @@ jobs:

regenerate:
runs-on: ubuntu-latest
timeout-minutes: 10
needs: detect-changes
if: needs.detect-changes.outputs.should_regenerate == 'true'
steps:
Expand Down Expand Up @@ -153,6 +155,7 @@ jobs:

version-bump:
runs-on: ubuntu-latest
timeout-minutes: 3
needs: [detect-changes, regenerate]
if: always() && needs.detect-changes.outputs.should_version_bump == 'true' && needs.detect-changes.outputs.is_merged_pr == 'true' && (needs.regenerate.result == 'success' || needs.regenerate.result == 'skipped')
steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/client-kotlin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ on:
jobs:
detect-changes:
runs-on: ubuntu-latest
timeout-minutes: 3
outputs:
should_regenerate: ${{ steps.check.outputs.should_regenerate }}
should_version_bump: ${{ steps.check.outputs.should_version_bump }}
Expand Down Expand Up @@ -104,6 +105,7 @@ jobs:

regenerate:
runs-on: ubuntu-latest
timeout-minutes: 10
needs: detect-changes
if: needs.detect-changes.outputs.should_regenerate == 'true'
steps:
Expand Down Expand Up @@ -147,6 +149,7 @@ jobs:

version-bump:
runs-on: ubuntu-latest
timeout-minutes: 3
needs: [detect-changes, regenerate]
if: always() && needs.detect-changes.outputs.should_version_bump == 'true' && needs.detect-changes.outputs.is_merged_pr == 'true' && (needs.regenerate.result == 'success' || needs.regenerate.result == 'skipped')
steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/client-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ on:
jobs:
detect-changes:
runs-on: ubuntu-latest
timeout-minutes: 3
outputs:
should_regenerate: ${{ steps.check.outputs.should_regenerate }}
should_version_bump: ${{ steps.check.outputs.should_version_bump }}
Expand Down Expand Up @@ -108,6 +109,7 @@ jobs:

regenerate:
runs-on: ubuntu-latest
timeout-minutes: 10
needs: detect-changes
if: needs.detect-changes.outputs.should_regenerate == 'true'
steps:
Expand Down Expand Up @@ -153,6 +155,7 @@ jobs:

version-bump:
runs-on: ubuntu-latest
timeout-minutes: 3
needs: [detect-changes, regenerate]
if: always() && needs.detect-changes.outputs.should_version_bump == 'true' && needs.detect-changes.outputs.is_merged_pr == 'true' && (needs.regenerate.result == 'success' || needs.regenerate.result == 'skipped')
steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/client-swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ on:
jobs:
detect-changes:
runs-on: ubuntu-latest
timeout-minutes: 3
outputs:
should_regenerate: ${{ steps.check.outputs.should_regenerate }}
should_version_bump: ${{ steps.check.outputs.should_version_bump }}
Expand Down Expand Up @@ -106,6 +107,7 @@ jobs:

regenerate:
runs-on: ubuntu-latest
timeout-minutes: 10
needs: detect-changes
if: needs.detect-changes.outputs.should_regenerate == 'true'
steps:
Expand Down Expand Up @@ -150,6 +152,7 @@ jobs:

version-bump:
runs-on: ubuntu-latest
timeout-minutes: 3
needs: [detect-changes, regenerate]
if: always() && needs.detect-changes.outputs.should_version_bump == 'true' && needs.detect-changes.outputs.is_merged_pr == 'true' && (needs.regenerate.result == 'success' || needs.regenerate.result == 'skipped')
steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/client-typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ on:
jobs:
detect-changes:
runs-on: ubuntu-latest
timeout-minutes: 3
outputs:
should_regenerate: ${{ steps.check.outputs.should_regenerate }}
should_version_bump: ${{ steps.check.outputs.should_version_bump }}
Expand Down Expand Up @@ -108,6 +109,7 @@ jobs:

regenerate:
runs-on: ubuntu-latest
timeout-minutes: 10
needs: detect-changes
if: needs.detect-changes.outputs.should_regenerate == 'true'
steps:
Expand Down Expand Up @@ -153,6 +155,7 @@ jobs:

version-bump:
runs-on: ubuntu-latest
timeout-minutes: 3
needs: [detect-changes, regenerate]
if: always() && needs.detect-changes.outputs.should_version_bump == 'true' && needs.detect-changes.outputs.is_merged_pr == 'true' && (needs.regenerate.result == 'success' || needs.regenerate.result == 'skipped')
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-dart-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
publish-dart-package:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: "Checkout"
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-npm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
publish-npm-package:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish-python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ on:
jobs:
publish-python-package:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Clean dist directory
working-directory: clients/cardscan-python
run: rm -rf dist/
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v2.0
with:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/test-api-clients.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
test-python-client:
name: Test Python Client
runs-on: ubuntu-latest
timeout-minutes: 10
outputs:
PYTHON_PASSED: ${{ steps.test_results.outputs.PYTHON_PASSED }}
PYTHON_FAILED: ${{ steps.test_results.outputs.PYTHON_FAILED }}
Expand Down Expand Up @@ -58,6 +59,7 @@ jobs:
test-python-sandbox:
name: Test Python Client (Sandbox Integration)
runs-on: ubuntu-latest
timeout-minutes: 15
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'schedule'

steps:
Expand Down Expand Up @@ -89,6 +91,7 @@ jobs:
test-typescript-client:
name: Test TypeScript Client
runs-on: ubuntu-latest
timeout-minutes: 8
outputs:
TS_PASSED: ${{ steps.test_results.outputs.TS_PASSED }}
TS_FAILED: ${{ steps.test_results.outputs.TS_FAILED }}
Expand Down Expand Up @@ -130,6 +133,7 @@ jobs:
test-typescript-sandbox:
name: Test TypeScript Client (Sandbox Integration)
runs-on: ubuntu-latest
timeout-minutes: 15
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'schedule'

steps:
Expand Down Expand Up @@ -158,6 +162,7 @@ jobs:
test-kotlin-client:
name: Test Kotlin Client
runs-on: ubuntu-latest
timeout-minutes: 10
outputs:
KOTLIN_PASSED: ${{ steps.test_results.outputs.KOTLIN_PASSED }}
KOTLIN_FAILED: ${{ steps.test_results.outputs.KOTLIN_FAILED }}
Expand Down Expand Up @@ -194,6 +199,7 @@ jobs:
test-dart-client:
name: Test Dart Client
runs-on: ubuntu-latest
timeout-minutes: 10
outputs:
DART_PASSED: ${{ steps.test_results.outputs.DART_PASSED }}
DART_FAILED: ${{ steps.test_results.outputs.DART_FAILED }}
Expand Down Expand Up @@ -249,6 +255,7 @@ jobs:
test-swift-client:
name: Test Swift Client
runs-on: macos-latest
timeout-minutes: 12
outputs:
SWIFT_PASSED: ${{ steps.test_results.outputs.SWIFT_PASSED }}
SWIFT_FAILED: ${{ steps.test_results.outputs.SWIFT_FAILED }}
Expand Down Expand Up @@ -277,6 +284,7 @@ jobs:
test-kotlin-sandbox:
name: Test Kotlin Client (Sandbox Integration)
runs-on: ubuntu-latest
timeout-minutes: 15
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'schedule'

steps:
Expand Down Expand Up @@ -305,6 +313,7 @@ jobs:
test-dart-sandbox:
name: Test Dart Client (Sandbox Integration)
runs-on: ubuntu-latest
timeout-minutes: 15
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'schedule'

steps:
Expand Down Expand Up @@ -333,6 +342,7 @@ jobs:
test-swift-sandbox:
name: Test Swift Client (Sandbox Integration)
runs-on: macos-latest
timeout-minutes: 18
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'schedule'

steps:
Expand All @@ -351,6 +361,7 @@ jobs:
test-fixtures-consistency:
name: Validate Test Fixtures
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Checkout code
Expand Down Expand Up @@ -405,6 +416,7 @@ jobs:
summary:
name: Test Summary
runs-on: ubuntu-latest
timeout-minutes: 3
needs: [test-python-client, test-typescript-client, test-kotlin-client, test-dart-client, test-swift-client, test-fixtures-consistency]
if: always()

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
jobs:
check_changes:
runs-on: ubuntu-latest
timeout-minutes: 3
outputs:
oas_changed: ${{ steps.filter.outputs.oas }}
ts_changed: ${{ steps.filter.outputs.ts }}
Expand All @@ -29,6 +30,7 @@ jobs:
- 'openapi.yaml'
build-test-ts:
runs-on: ubuntu-latest
timeout-minutes: 8
needs: check_changes
if: ${{ needs.check_changes.outputs.ts_changed == 'true' || needs.check_changes.outputs.oas_changed == 'true' }}
steps:
Expand All @@ -46,6 +48,7 @@ jobs:

build-test-python:
runs-on: ubuntu-latest
timeout-minutes: 10
needs: check_changes
if: ${{ needs.check_changes.outputs.py_changed == 'true' || needs.check_changes.outputs.oas_changed == 'true' }}
steps:
Expand All @@ -66,6 +69,7 @@ jobs:
run: poetry build
set-check-run:
runs-on: ubuntu-latest
timeout-minutes: 3
if: ${{ needs.check_changes.outputs.py_changed == 'true' }}
steps:
- name: Create a check run for build-test-python
Expand Down
2 changes: 1 addition & 1 deletion clients/cardscan-python/.github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
timeout-minutes: 8
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
Expand Down
Loading