Skip to content

Commit c426c9b

Browse files
committed
Pass "--configuration Release" explicitly (instead of through env var)
Because of microsoft/testfx#7121
1 parent 26c5924 commit c426c9b

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Continuous Integration
33
on: push
44

55
env:
6-
Configuration: Release
76
ContinuousIntegrationBuild: true
87
DOTNET_CLI_TELEMETRY_OPTOUT: true
98
DOTNET_NOLOGO: true
@@ -35,7 +34,7 @@ jobs:
3534
uses: actions/setup-dotnet@v5
3635
with:
3736
dotnet-version: |
38-
10.0.100
37+
10.0.x
3938
8.0.x
4039
- name: ℹ️ Show .NET info
4140
run: dotnet --info
@@ -49,14 +48,14 @@ jobs:
4948
- name: ⚙️ Restore NuGet packages
5049
run: dotnet restore
5150
- name: 🏗 Build solution
52-
run: dotnet build --no-restore
51+
run: dotnet build --no-restore --configuration Release
5352
- name: 📜 Fix README for nuget.org
5453
run: dotnet run --project tools/mmd/mmd.csproj -- README.md ${{ github.sha }} README.md
5554
- name: 🧪 Run tests
5655
env:
5756
TUNIT_DISABLE_GITHUB_REPORTER: true
5857
# The .nupkg file is created as part of integration tests
59-
run: dotnet test --no-build
58+
run: dotnet test --no-build --configuration Release
6059
- name: 📤 Upload test results
6160
uses: actions/upload-artifact@v5
6261
if: always()

global.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"$schema": "https://www.schemastore.org/global.json",
3-
"sdk": {
4-
"version": "10.0.100"
5-
},
63
"test": {
74
"runner": "Microsoft.Testing.Platform"
85
}

tests/nugraph.Tests/Support/NugraphGlobalTool.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ private async Task PackAsync()
9292
if (IsContinuousIntegrationBuild)
9393
{
9494
packArgs.Add("--no-build");
95+
packArgs.Add("--configuration");
96+
packArgs.Add("Release");
9597
}
9698
var packageVersion = await RunDotnetAsync(packArgs.ToArray());
9799
_version = packageVersion.TrimEnd();

0 commit comments

Comments
 (0)