-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,23 +4,24 @@ on: [push, pull_request] | |
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup dotnet 4.5.2 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: "4.5.2" | ||
- name: Display dotnet version | ||
run: dotnet --version | ||
- name: Install dependencies | ||
run: dotnet restore | ||
- name: Test with dotnet | ||
run: dotnet test --logger trx --results-directory "TestResults" | ||
- name: Upload dotnet test results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dotnet-results-4.5.2 | ||
path: TestResults | ||
# Use always() to always run this step to publish test results when there are test failures | ||
if: ${{ always() }} | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup MSBuild | ||
uses: microsoft/[email protected] | ||
|
||
- name: Setup NuGet | ||
uses: NuGet/[email protected] | ||
|
||
- name: Restore NuGet packages | ||
run: nuget restore SoG_SGreader.sln | ||
|
||
- name: Build | ||
run: msbuild /p:Configuration=Release SoG_SGreader.sln | ||
|
||
- name: Test | ||
run: | | ||
cd SoG_SGreader.Test | ||
dotnet test |