You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- name: Publish Test Resultsuses: dorny/test-reporter@v1.4.3with:
name: AP Test Results win-x64 Releasepath: "${{runner.temp}}/Acoustics.Test_Results/**/*.trx"reporter: "dotnet-trx"
The action fails to find any files:
Run dorny/test-reporter@v1.4.3
with:
name: AP Test Results win-x64 Release
path: D:\a\_temp/Acoustics.Test_Results/**/*.trx
reporter: dotnet-trx
list-suites: all
list-tests: all
max-annotations: 10
fail-on-error: true
env: {}
Check runs will be created with SHA=784cf60c324629adef252f2338961c097772c804
::group::Listing all files tracked by git
Listing all files tracked by git
Found 1320 files tracked by GitHub
Using test report parser 'dotnet-trx'
::group::Creating test report AP Test Results win-x64 Release
Creating test report AP Test Results win-x64 Release
Warning: No file matches path D:\a\_temp/Acoustics.Test_Results/**/*.trx
::endgroup::
::set-output name=conclusion::success
##[debug]='success'
::set-output name=passed::0
##[debug]='0'
::set-output name=failed::0
##[debug]='0'
::set-output name=skipped::0
##[debug]='0'
::set-output name=time::0
##[debug]='0'
Error: No test report files were found
##[debug]Node Action run completed with exit code 1##[debug]Finishing: Publish Test Results
The issues is that the GitHub runner.temp context variable contains \ slashes in the path.
Creating a safe version of runner.temp in a previous workflow step allows me to bypass the problem:
The fast-glob library that is internally used interprets backslashes as escape characters. If enabled, all backslashes in provided path will be replaced by forward slashes and act as directory separators. It might be useful when path input variable is composed dynamically from existing directory paths on Windows.
Closes#127
I've added the option path-replace-backslashes. If enabled, all backslashes in the provided path will be replaced by forward slashes and act as directory separators.
With these options set:
The action fails to find any files:
The issues is that the GitHub
runner.temp
context variable contains\
slashes in the path.Creating a safe version of
runner.temp
in a previous workflow step allows me to bypass the problem:With that, this will work:
I think the path just needs to be normalized before you pass it to the glob function.
The text was updated successfully, but these errors were encountered: