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 17, 2024
1 parent bfd8240 commit 3a93cb5
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 @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
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 3a93cb5

Please sign in to comment.