Skip to content

chore(deps): update dependency jaraco-classes to v3.3.0 (main) #694

chore(deps): update dependency jaraco-classes to v3.3.0 (main)

chore(deps): update dependency jaraco-classes to v3.3.0 (main) #694

name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
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@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Setup GCloud
uses: google-github-actions/setup-gcloud@v0
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
- 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 }}