Bump Microsoft.Extensions.DependencyInjection from 9.0.4 to 10.0.2 #98
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: Build and Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| pull_request: | |
| branches: | |
| - main | |
| - develop | |
| workflow_dispatch: | |
| jobs: | |
| Build-Test: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Fetch all history | |
| run: | | |
| git fetch --prune | |
| - name: Setup MSBuild | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: Debug build | |
| run: | | |
| msbuild -verbosity:minimal -t:Rebuild -restore -p:Configuration=Debug | |
| - name: Unit tests | |
| run: | | |
| dotnet test Tests --logger trx --results-directory "TestResults" | |
| - name: Upload dotnet test results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dotnet-results | |
| path: TestResults | |
| # Always run this step, even when there are test failures | |
| if: ${{ always() }} | |
| - name: Release build | |
| run: | | |
| msbuild -verbosity:minimal -t:Rebuild -restore -p:Configuration=Release |