Skip to content

Commit

Permalink
SWI-1695: Adding a missing environment variable (#80)
Browse files Browse the repository at this point in the history
* SWI-1695: updating the regex again

* SWI-1695: updating the regex again pt.2

* SWI-1695: removed comment

* SWI-1695: Update quotes

* SWI-1695: Add missing environment variable

* Update deploy.yml

* SWI-1695: Updated env vars
  • Loading branch information
juliajanu authored Oct 24, 2023
1 parent 2cbf2c8 commit 4a00b78
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ env:
MANTECA_BASE_URL: ${{ secrets.MANTECA_BASE_URL }}
MANTECA_IDLE_NUMBER: ${{ secrets.MANTECA_IDLE_NUMBER }}
OPERATING_SYSTEM: ubuntu-latest
CSHARP_VERSION: 7.0.x
DOTNET_VERSION: 7.0.x

jobs:
deploy_pre_release:
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
with:
dotnet-version: '7.0.x'

- name: Run integration tests
- name: Run functional tests
run: dotnet test $BW_PROJECT_TEST_NAME

- name: Pack NuGet package
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
with:
dotnet-version: '7.0.x'

- name: Run integration tests
- name: Run functional tests
run: dotnet test $BW_PROJECT_TEST_NAME

- name: Pack NuGet package
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/test-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ jobs:
- name: Run functional tests
env:
OPERATING_SYSTEM: ${{ matrix.os }}
CSHARP_VERSION: ${{ matrix.dotnet }}
# Required for multiple target frameworks in the StandardTests project.
DOTNET: ${{ matrix.dotnet }}
DOTNET_VERSION: ${{ matrix.dotnet }}
run: dotnet test src/Bandwidth.Standard.Test

test_feature:
Expand All @@ -67,9 +65,7 @@ jobs:
- name: Run functional tests
env:
OPERATING_SYSTEM: ${{ matrix.os }}
CSHARP_VERSION: ${{ matrix.dotnet }}
# Required for multiple target frameworks in the StandardTests project.
DOTNET: ${{ matrix.dotnet }}
DOTNET_VERSION: ${{ matrix.dotnet }}
run: dotnet test src/Bandwidth.Standard.Test

notify_for_failures:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,5 @@ jobs:
- name: Run functional tests
env:
OPERATING_SYSTEM: ${{ matrix.os }}
CSHARP_VERSION: ${{ matrix.dotnet }}
# Required for multiple target frameworks in the StandardTests project.
DOTNET: ${{ matrix.dotnet }}
DOTNET_VERSION: ${{ matrix.dotnet }}
run: dotnet test src/Bandwidth.Standard.Test
4 changes: 2 additions & 2 deletions src/Bandwidth.Standard.Test/Bandwidth.Standard.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>
<AssemblyName>Bandwidth.Standard.Test</AssemblyName>
<RootNamespace>Bandwidth.Standard.Test</RootNamespace>
<TargetFramework Condition="'$(DOTNET)' == '6.0.x' Or '$(DOTNET)' == ''">net6.0</TargetFramework>
<TargetFramework Condition="'$(DOTNET)' == '7.0.x'">net7.0</TargetFramework>
<TargetFramework Condition="'$(DOTNET_VERSION)' == '6.0.x' Or '$(DOTNET_VERSION)' == ''">net6.0</TargetFramework>
<TargetFramework Condition="'$(DOTNET_VERSION)' == '7.0.x'">net7.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public Tuple<string, string> CreateConferenceTest()
var jsonBody = JsonSerializer.Serialize(new
{
os = Environment.GetEnvironmentVariable("OPERATING_SYSTEM"),
language = "csharp" + Environment.GetEnvironmentVariable("CSHARP_VERSION"),
language = "csharp" + Environment.GetEnvironmentVariable("DOTNET_VERSION"),
type = "CONFERENCE"
});
var options = new RequestOptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public Tuple<string, string> CreateAndValidateCall()
var jsonBody = JsonSerializer.Serialize(new
{
os = Environment.GetEnvironmentVariable("OPERATING_SYSTEM"),
language = "csharp" + Environment.GetEnvironmentVariable("CSHARP_VERSION"),
language = "csharp" + Environment.GetEnvironmentVariable("DOTNET_VERSION"),
type = "CALL"
});
var options = new RequestOptions
Expand Down

0 comments on commit 4a00b78

Please sign in to comment.