Skip to content

VS-128: Fix tests for 2.25 driver #718

VS-128: Fix tests for 2.25 driver

VS-128: Fix tests for 2.25 driver #718

Workflow file for this run

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