create issue templates #40
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: csharp-sdk | |
| 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 example/csharp/aidbox || 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 example/csharp/aidbox | |
| exit 1 | |
| fi |