Skip to content

Commit 9037738

Browse files
author
Petr Sramek
committed
slfajwdl
1 parent 5c433eb commit 9037738

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/dotnet.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
with:
2323
dotnet-version: ${{ vars.DOTNET_VERSION }}
2424
- name: Build
25-
run: dotnet build ./src/**/*.csproj --configuration Release /p:Platform=AnyCPU
25+
run: dotnet build ./src/**/*.csproj --configuration ${{ vars.BUILD_CONFIGURATION }} /p:Platform=${{ vars.BUILD_PLATFORM }}
2626
- name: Upload
2727
uses: actions/upload-artifact@v4
2828
with:
@@ -42,7 +42,7 @@ jobs:
4242
with:
4343
dotnet-version: ${{ vars.DOTNET_VERSION }}
4444
- name: Test
45-
run: dotnet test ./tests/**/*Tests.csproj --configuration Release /p:Platform=AnyCPU --verbosity normal --settings unit-test.runsettings --logger trx --collect:"Code Coverage" --results-directory test-results
45+
run: dotnet test ./tests/**/*Tests.csproj --configuration ${{ vars.BUILD_CONFIGURATION }} /p:Platform=${{ vars.BUILD_PLATFORM }} --verbosity normal --settings unit-test.runsettings --logger trx --collect:"Code Coverage" --results-directory test-results
4646
- name: Upload
4747
uses: actions/upload-artifact@v4
4848
with:
@@ -65,7 +65,7 @@ jobs:
6565
with:
6666
name: build
6767
- name: Pack
68-
run: dotnet pack ./src/**/*.csproj --no-build --no-restore --configuration Release /p:Platform=AnyCPU
68+
run: dotnet pack ./src/**/*.csproj --no-build --no-restore --configuration ${{ vars.BUILD_CONFIGURATION }} /p:Platform=${{ vars.BUILD_PLATFORM }}
6969
- name: Upload
7070
uses: actions/upload-artifact@v4
7171
with:

0 commit comments

Comments
 (0)