-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run tests on Windows and Ubuntu with Github Actions #143
Conversation
env: | ||
Solution_Name: eawx-build.sln # Replace with your solution name, i.e. MyWpfApp.sln. | ||
Test_Project_Path: eawx-build-test/eawx-build-test.csproj # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj. | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the PetroglyphTools repository, the ACTIONS_ALLOW_UNSECURE_COMMANDS: true
is not needed.
That could be down to the setup though (all dotnet, and no specific versions for the actions and 3.1.x for dotnet core)
- name: Setup .NET Core SDK | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: 3.1.101 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe use 3.1.x instead so it automatically uses the latest 3.1 version.
|
||
- name: Setup .NET Core SDK | ||
uses: actions/[email protected] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a need for the specific version, otherwise you could just use actions/setup-dotnet@v1
@@ -85,4 +84,34 @@ jobs: | |||
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a specific reason to run via msbuild
and not dotnet build
?
Should solve issue #142