Skip to content

Commit

Permalink
Added latest check for others cloud providers
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jmartinezramirez committed Apr 16, 2024
1 parent ccb36a9 commit 38357c9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
36 changes: 30 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,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
Expand Down Expand Up @@ -104,7 +106,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
Expand All @@ -125,10 +127,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
Expand Down Expand Up @@ -163,7 +176,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
Expand All @@ -184,10 +197,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
Expand Down
1 change: 0 additions & 1 deletion Snowflake.Data/Snowflake.Data.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
<PackageReference Include="AWSSDK.S3" Version="3.7.0.4" />
<PackageReference Include="Google.Cloud.Storage.V1" Version="4.6.0" />
<PackageReference Include="Azure.Storage.Blobs" Version="12.13.0" />
<PackageReference Include="Azure.Storage.Common" Version="12.12.0" />
<PackageReference Include="Mono.Unix" Version="7.1.0-final.1.21458.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="log4net" Version="2.0.12" />
Expand Down

0 comments on commit 38357c9

Please sign in to comment.