From 3a93cb59a0cf229e1bcd8dec19aa9b16ba0f5422 Mon Sep 17 00:00:00 2001 From: Juan Martinez Ramirez Date: Tue, 16 Apr 2024 07:13:15 -0600 Subject: [PATCH] Added latest check for others cloud providers --- .github/workflows/main.yml | 36 +++++++++++++++++++++++----- Snowflake.Data/Snowflake.Data.csproj | 1 - 2 files changed, 30 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fdfa7f766..ae21d9a8c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -69,6 +69,8 @@ jobs: run: | cd Snowflake.Data.Tests dotnet add ./../Snowflake.Data/Snowflake.Data.csproj package AWSSDK.S3 + dotnet add ./../Snowflake.Data/Snowflake.Data.csproj package Google.Cloud.Storage.V1 + dotnet add ./../Snowflake.Data/Snowflake.Data.csproj package Azure.Storage.Blobs dotnet restore dotnet build -f ${{ matrix.dotnet }} - name: Run Tests @@ -105,7 +107,7 @@ jobs: matrix: dotnet: ['net6.0'] cloud_env: ['AZURE', 'GCP', 'AWS'] - pkg_version: ['current'] + pkg_version: ['current', 'latest'] steps: - uses: actions/checkout@v3 - name: Setup Dotnet @@ -126,10 +128,21 @@ jobs: run: | gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETER_SECRET" \ ./.github/workflows/parameters/parameters_${{ matrix.cloud_env }}.json.gpg > Snowflake.Data.Tests/parameters.json - - name: Build Driver + - name: Build Driver Current + if: ${{ matrix.pkg_version == 'current' }} + run: | + cd Snowflake.Data.Tests + dotnet restore + dotnet build -f ${{ matrix.dotnet }} + - name: Build Driver Latest + if: ${{ matrix.pkg_version == 'latest' }} run: | + cd Snowflake.Data.Tests + dotnet add ./../Snowflake.Data/Snowflake.Data.csproj package AWSSDK.S3 + dotnet add ./../Snowflake.Data/Snowflake.Data.csproj package Google.Cloud.Storage.V1 + dotnet add ./../Snowflake.Data/Snowflake.Data.csproj package Azure.Storage.Blobs dotnet restore - dotnet build + dotnet build -f ${{ matrix.dotnet }} - name: Run Tests run: | cd Snowflake.Data.Tests @@ -164,7 +177,7 @@ jobs: matrix: dotnet: ['net6.0'] cloud_env: ['AZURE', 'GCP', 'AWS'] - pkg_version: ['current'] + pkg_version: ['current', 'latest'] steps: - uses: actions/checkout@v3 - name: Setup Dotnet @@ -185,10 +198,21 @@ jobs: run: | gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETER_SECRET" \ ./.github/workflows/parameters/parameters_${{ matrix.cloud_env }}.json.gpg > Snowflake.Data.Tests/parameters.json - - name: Build Driver + - name: Build Driver Current + if: ${{ matrix.pkg_version == 'current' }} + run: | + cd Snowflake.Data.Tests + dotnet restore + dotnet build -f ${{ matrix.dotnet }} + - name: Build Driver Latest + if: ${{ matrix.pkg_version == 'latest' }} run: | + cd Snowflake.Data.Tests + dotnet add ./../Snowflake.Data/Snowflake.Data.csproj package AWSSDK.S3 + dotnet add ./../Snowflake.Data/Snowflake.Data.csproj package Google.Cloud.Storage.V1 + dotnet add ./../Snowflake.Data/Snowflake.Data.csproj package Azure.Storage.Blobs dotnet restore - dotnet build + dotnet build -f ${{ matrix.dotnet }} - name: Run Tests run: | cd Snowflake.Data.Tests diff --git a/Snowflake.Data/Snowflake.Data.csproj b/Snowflake.Data/Snowflake.Data.csproj index 0621c5fb0..2ff69e17b 100644 --- a/Snowflake.Data/Snowflake.Data.csproj +++ b/Snowflake.Data/Snowflake.Data.csproj @@ -23,7 +23,6 @@ -