Skip to content

Commit

Permalink
More GitHub Runner Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jrnelson90 committed Dec 1, 2023
1 parent 4051337 commit f0c938a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/4_6_2_Core_Unit_Tests_Win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,17 @@ jobs:
working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit

- name: Build Certify.Core.Tests.Unit
run: dotnet build -c Release --no-restore -f net462
run: dotnet build -c Debug --no-restore -f net462
working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit

- name: Run Certify.Core.Tests.Unit Tests
run: dotnet test Certify.Core.Tests.Unit.dll -v normal -f net462 --logger trx --results-directory "TestResults-4_6_2-${{ matrix.os }}"
working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit/bin/Release/net462
working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit/bin/Debug/net462

- name: Upload Certify.Core.Tests.Unit Test Results
uses: actions/upload-artifact@master
with:
name: dotnet-results-4_6_2-${{ matrix.os }}
path: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit/bin/Release/net462/TestResults-4_6_2-${{ matrix.os }}
path: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit/bin/Debug/net462/TestResults-4_6_2-${{ matrix.os }}
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
6 changes: 3 additions & 3 deletions .github/workflows/8_0_Core_Unit_Tests_Linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,17 @@ jobs:
working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit

- name: Build Certify.Core.Tests.Unit
run: dotnet build -c Release --no-restore -f net8.0
run: dotnet build -c Debug --no-restore -f net8.0
working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit

- name: Run Certify.Core.Tests.Unit Tests
run: dotnet test Certify.Core.Tests.Unit.dll -v normal -f net8.0 --logger trx --results-directory "TestResults-8_0-${{ matrix.os }}"
working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit/bin/Release/net8.0
working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit/bin/Debug/net8.0

- name: Upload Certify.Core.Tests.Unit Test Results
uses: actions/upload-artifact@master
with:
name: dotnet-results-8_0-${{ matrix.os }}
path: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit/bin/Release/net8.0/TestResults-8_0-${{ matrix.os }}
path: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit/bin/Debug/net8.0/TestResults-8_0-${{ matrix.os }}
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
8 changes: 4 additions & 4 deletions .github/workflows/8_0_Core_Unit_Tests_Win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
run: "Invoke-WebRequest -Method 'GET' -uri 'https://dl.smallstep.com/gh-release/cli/docs-cli-install/v0.24.4/step_windows_0.24.4_amd64.zip' -Outfile 'C:\\temp\\step_windows_0.24.4_amd64.zip'; tar -oxzf C:\\temp\\step_windows_0.24.4_amd64.zip -C 'C:\\Program Files';"

- name: Add Step CLI to PATH
run: $NewPath = $Env.Path += ";C:\\Program Files\\step_0.24.4\\bin" && [Environment]::SetEnvironmentVariable("Path", $NewPath)
run: $NewPath = [Environment]::GetEnvironmentVariable("Path") += ";C:\\Program Files\\step_0.24.4\\bin" && [Environment]::SetEnvironmentVariable("GITHUB_PATH", $NewPath)

- name: Validate Step CLI Install
run: dir "C:\\Program Files\\step_0.24.4" && [Environment]::GetEnvironmentVariable("Path") -split ";"
Expand All @@ -79,17 +79,17 @@ jobs:
working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit

- name: Build Certify.Core.Tests.Unit
run: dotnet build -c Release --no-restore -f net8.0
run: dotnet build -c Debug --no-restore -f net8.0
working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit

- name: Run Certify.Core.Tests.Unit Tests
run: dotnet test Certify.Core.Tests.Unit.dll -v normal -f net8.0 --logger trx --results-directory "TestResults-8_0-${{ matrix.os }}"
working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit/bin/Release/net8.0
working-directory: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit/bin/Debug/net8.0

- name: Upload Certify.Core.Tests.Unit Test Results
uses: actions/upload-artifact@master
with:
name: dotnet-results-8_0-${{ matrix.os }}
path: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit/bin/Release/net8.0/TestResults-8_0-${{ matrix.os }}
path: ./certify/src/Certify.Tests/Certify.Core.Tests.Unit/bin/Debug/net8.0/TestResults-8_0-${{ matrix.os }}
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}

0 comments on commit f0c938a

Please sign in to comment.