VS-128: Fix tests for 2.25 driver #718
Workflow file for this run
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
name: .NET | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 3.1.x | |
- name: Setup msbuild | |
uses: microsoft/[email protected] | |
- name: Setup nuget | |
uses: NuGet/[email protected] | |
- name: Restore dependencies | |
run: dotnet restore MongoDB.Analyzer.sln | |
- name: Build | |
run: msbuild MongoDB.Analyzer.sln -restore:false | |
- name: Test net472 | |
uses: microsoft/[email protected] | |
with: | |
testAssembly: MongoDB.Analyzer.Tests.dll | |
searchFolder: ./tests/MongoDB.Analyzer.Tests/bin/debug/net472/ | |
runInParallel: false | |
- name: Test netcoreapp3.1 | |
uses: microsoft/[email protected] | |
with: | |
testAssembly: MongoDB.Analyzer.Tests.dll | |
searchFolder: ./tests/MongoDB.Analyzer.Tests/bin/debug/netcoreapp3.1/ | |
runInParallel: false | |
- name: Tests Report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() | |
with: | |
name: tests results | |
path: '**/TestResults/*.trx' | |
reporter: dotnet-trx |