Skip to content

tests: enable PR merge tests with unit tests and e2e tests #1

tests: enable PR merge tests with unit tests and e2e tests

tests: enable PR merge tests with unit tests and e2e tests #1

Workflow file for this run

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