Skip to content

Commit

Permalink
adjusted tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tolik518 committed Oct 21, 2023
1 parent b8c78a2 commit 37c11d8
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 37c11d8

Please sign in to comment.