More osx tweaks

This commit is contained in:
Tig
2024-07-07 17:29:50 -06:00
parent 2d3d784aef
commit 1a53cd0c3f

View File

@@ -38,21 +38,24 @@ jobs:
- name: Build Debug - name: Build Debug
run: dotnet build --configuration Debug --no-restore run: dotnet build --configuration Debug --no-restore
- name: Install sed on macOS - name: Install sed on macOS and update xunit.runner.json
if: runner.os == 'macOS' if: runner.os == 'macOS'
run: | run: |
brew install gnu-sed brew install gnu-sed
PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH" PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"
sed --version sed -i 's/"stopOnFail": false/"stopOnFail": true/g' UnitTests/xunit.runner.json
- name: Update xunit.runner.json (Windows/Ubuntu)
if: runner.os != 'macOS'
run: |
sed -i 's/"stopOnFail": false/"stopOnFail": true/g' UnitTests/xunit.runner.json
# See https://github.com/microsoft/vstest/issues/2952 for why the --blame stuff below is needed. # See https://github.com/microsoft/vstest/issues/2952 for why the --blame stuff below is needed.
# Without it, the test runner crashes on ubuntu (but not Windows)/ # Without it, the test runner crashes on ubuntu (but not Windows)/
- name: Test - name: Test
run: | run: |
PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"
sed -i 's/"stopOnFail": false/"stopOnFail": true/g' UnitTests/xunit.runner.json
dotnet test --verbosity normal --collect:"XPlat Code Coverage" --settings UnitTests/coverlet.runsettings --diag:logs/logs.txt --blame --blame-crash --blame-hang --blame-hang-timeout 60s --blame-crash-collect-always dotnet test --verbosity normal --collect:"XPlat Code Coverage" --settings UnitTests/coverlet.runsettings --diag:logs/logs.txt --blame --blame-crash --blame-hang --blame-hang-timeout 60s --blame-crash-collect-always
# mv -v UnitTests/TestResults/*/*.* UnitTests/TestResults/ # mv -v UnitTests/TestResults/*/*.* UnitTests/TestResults/
- name: Upload Test Logs - name: Upload Test Logs
@@ -62,7 +65,6 @@ jobs:
name: test-logs name: test-logs
path: | path: |
logs/ logs/
uploads/
UnitTests/TestResults/ UnitTests/TestResults/
# Note: this step is currently not writing to the gist for some reason # Note: this step is currently not writing to the gist for some reason