Update xUnit to latest v3 and resolve build issues #34
Workflow file for this run
This file contains hidden or 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 Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| steps: | |
| - name: Install MongoDB | |
| uses: ankane/setup-mongodb@v1 | |
| with: | |
| mongodb-version: 8.0 | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v5 | |
| - name: Setup DotNet ✨ | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 9.0.x | |
| - name: Install dependencies 📦️ | |
| run: dotnet restore | |
| - name: Build 🔨 | |
| run: dotnet build --no-restore -c Release | |
| - name: Test ✅ | |
| run: dotnet test --no-restore --no-build --verbosity normal |