Skip to content

Commit

Permalink
Refactor conditional logic for test report execution in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
NadeemJazmawe committed Jan 16, 2025
1 parent e2df54e commit d65987b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,23 +155,23 @@ jobs:
# ------------------------------------------------------------------------------------------------------
- name: Test Report - Windows
uses: dorny/test-reporter@v1
if: success() || failure() && (runner.os == 'Windows') # run this step even if previous step failed
if: (success() || failure()) && (runner.os == 'Windows') # run this step even if previous step failed
with:
name: Ginger Windows UnitTests # Name of the check run which will be created
path: "D:/a/TestResults/*.trx" # Path to test results
reporter: dotnet-trx # Format of test results

- name: Test Report - Linux
uses: dorny/test-reporter@v1
if: success() || failure() && (runner.os == 'Linux') # run this step even if previous step failed
if: (success() || failure()) && (runner.os == 'Linux') # run this step even if previous step failed
with:
name: Ginger Linux UnitTests # Name of the check run which will be created
path: "**/*.trx" # Path to test results
reporter: dotnet-trx # Format of test results

- name: Test Report - MacOS
uses: dorny/test-reporter@v1
if: success() || failure() && (runner.os == 'macOS') # run this step even if previous step failed
if: (success() || failure()) && (runner.os == 'macOS') # run this step even if previous step failed
with:
name: Ginger MacOS UnitTests # Name of the check run which will be created
path: "**/*.trx" # Path to test results
Expand Down

0 comments on commit d65987b

Please sign in to comment.