Skip to content

Support local packages #174

Support local packages

Support local packages #174

Workflow file for this run

name: Test SDKs
on:
push:
pull_request:
jobs:
test-csharp-sdk:
runs-on: ubuntu-latest
strategy:
matrix:
bun-version: [latest]
dotnet-version: [8.0.x]
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ matrix.bun-version }}
- name: Setup .NET ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Test csharp-sdk
run: |
export AIDBOX_LICENSE_ID="${{ secrets.AIDBOX_LICENSE_ID }}"
make test-csharp-sdk
- name: Repository contains actual csharp-sdk version
run: |
diff_result=$(git diff --exit-code --name-only examples/csharp/generated || true)
if [ -z "$diff_result" ]; then
echo "✅ Generated SDK is identical to the one stored in repository."
else
echo "❌ Generated SDK differs from the one stored in repository."
echo "Differences:"
git diff examples/csharp/generated
exit 1
fi
test-typescript-sdk-r4:
runs-on: ubuntu-latest
strategy:
matrix:
bun-version: [latest]
steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ matrix.bun-version }}
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run tests
run: make test-typescript-r4-example
- name: Repository contains actual typescript-sdk version
run: |
diff_result=$(git diff --exit-code --name-only examples/typescript-r4 || true)
if [ -z "$diff_result" ]; then
echo "✅ Generated SDK is identical to the one stored in repository."
else
echo "❌ Generated SDK differs from the one stored in repository."
echo "Differences:"
git diff examples/typescript-r4
exit 1
fi
test-typescript-ccda-example:
runs-on: ubuntu-latest
strategy:
matrix:
bun-version: [latest]
steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ matrix.bun-version }}
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run tests
run: make test-typescript-ccda-example