Skip to content

chore: update dependency grpc.tools to 2.68.1 (main) #1120

chore: update dependency grpc.tools to 2.68.1 (main)

chore: update dependency grpc.tools to 2.68.1 (main) #1120

name: integration-tests-on-production
on:
push:
branches: [ main ]
pull_request:
branches: [ main, target-entity-framework-8 ]
workflow_dispatch:
jobs:
check-env:
outputs:
has-key: ${{ steps.project-id.outputs.defined }}
runs-on: ubuntu-latest
steps:
- id: project-id
env:
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
if: "${{ env.GCP_PROJECT_ID != '' }}"
run: echo "::set-output name=defined::true"
integration-tests-on-prod:
needs: [check-env]
if: needs.check-env.outputs.has-key == 'true'
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GCP_SA_KEY }}'
- name: Setup GCloud
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Integration Tests on Production
working-directory: ./Google.Cloud.EntityFrameworkCore.Spanner.IntegrationTests
run: dotnet test --verbosity normal
env:
JOB_TYPE: test
TEST_PROJECT: ${{ secrets.GCP_PROJECT_ID }}