I'm using simple git hub workflow to build .net application and upload artifact but having trouble when I need to reuse build artifact. For example to run integration tests in separate workflow.
Build workflow (part of it):
- name: Upload build artifacts
uses: actions/[email protected]
with:
name: dll-artifacts
path: '**/bin/Release/**/*.dll'
And in another workflow I'm trying to use this but having trouble figuring out what is correct path to integration tests:
- name: Download build artifacts
uses: actions/[email protected]
with:
name: dll-artifacts
path: build
- name: Run Integration Tests
run: dotnet test --configuration Release --no-build ~/build/MyProject.IntegrationTests.dll
I'm getting this error:
The argument /home/runner/build/MyProject.IntegrationTests.dll is invalid. Please use the /help option to check the list of valid arguments.
And this message is shown: The following arguments have been ignored : "--configuration Release --no-build"
What is the proper way to run integration tests in this scenario, which path/argument should I use?
Update:
After @Teemu pointed out to path problem, I was able to fix the path issue but still facing different issue running tests from .dll:
Testhost process for source(s) exited with error: A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found. Failed to run as a self-contained app. - The application was run as a self-contained app because 'testhost.runtimeconfig.json' was not found.