tests: enable PR merge tests with unit tests and e2e tests #1
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: .NET Test PR Check | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| - '*' | |
| jobs: | |
| test: | |
| 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@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.0.x' # Change if your project uses a different .NET version | |
| - name: Show .NET version | |
| run: dotnet --version | |
| - name: Run Unit Tests | |
| run: dotnet test ./Google.GenAI.Tests | |
| - name: Run E2E Tests | |
| run: dotnet test ./Google.GenAI.E2E.Tests |