Release Google.GenAI version 1.6.0 #1226
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: .NET Tests PR Check | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| - '*' | |
| jobs: | |
| unit-e2e-tests: | |
| runs-on: ubuntu-latest | |
| env: | |
| TEST_MODE: replay | |
| GOOGLE_API_KEY: test-key | |
| GOOGLE_CLOUD_PROJECT: test-project | |
| GOOGLE_CLOUD_LOCATION: us-central1 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| - name: List Recordings folder location | |
| run: | | |
| echo "Searching for Recordings folder..." | |
| find $GITHUB_WORKSPACE -type d -name 'Recordings' | |
| - name: Fake Google ADC | |
| run: | | |
| gcloud_config_path="${HOME}/.config/gcloud" | |
| mkdir -p "${gcloud_config_path}" | |
| cat > "${gcloud_config_path}/application_default_credentials.json" <<EOF | |
| { "client_id": "none", "client_secret": "none", "refresh_token": "none", "type": "authorized_user" } | |
| EOF | |
| - name: Show .NET version | |
| run: dotnet --list-sdks | |
| - name: Run Unit Tests against net8.0 build | |
| if: github.repository == 'googleapis/dotnet-genai' || github.repository == 'google-gemini/private-dotnet-genai' | |
| run: dotnet test ./Google.GenAI.Tests/Google.GenAI.Tests.csproj | |
| - name: Run Unit Tests against netstandard2.0 build | |
| if: github.repository == 'googleapis/dotnet-genai' || github.repository == 'google-gemini/private-dotnet-genai' | |
| run: dotnet test ./Google.GenAI.Tests/Netstandard2_0Tests/Google.GenAI.Netstandard2_0.Tests.csproj | |
| - name: Run E2E Tests against net8.0 build | |
| if: github.repository == 'googleapis/dotnet-genai' || github.repository == 'google-gemini/private-dotnet-genai' | |
| run: dotnet test ./Google.GenAI.E2E.Tests/Google.GenAI.E2E.Tests.csproj | |
| - name: Run E2E Tests against netstandard2.0 build | |
| if: github.repository == 'googleapis/dotnet-genai' || github.repository == 'google-gemini/private-dotnet-genai' | |
| run: dotnet test ./Google.GenAI.E2E.Tests/Netstandard2_0Tests/Google.GenAI.E2E.Netstandard2_0Tests.csproj |