Bump xunit.v3.mtp-v2 from 3.2.0 to 3.2.1 (#4) #11
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: Merge into 'main' | |
| on: | |
| push: | |
| branches: [main] | |
| paths-ignore: | |
| - '.editorconfig' | |
| - 'ReadMe.md' | |
| - 'ChangeLog.md' | |
| - '.github/workflows/PullRequest.yml' | |
| - '.github/workflows/Release.yml' | |
| permissions: | |
| packages: write | |
| env: | |
| DOTNET_NOLOGO: true | |
| LOWEST_FRAMEWORK: net8.0 | |
| HIGHEST_FRAMEWORK: net10.0 | |
| jobs: | |
| build_and_create_a_nuget: | |
| name: Build and create a NuGet (RELEASE) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| framework: [net8.0, net10.0] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Build version prefix/suffix | |
| run: | | |
| echo "VERSION_PREFIX=$(( ${{ github.run_number }} )).0.0" >> $GITHUB_ENV | |
| echo "VERSION_SUFFIX=beta" >> $GITHUB_ENV | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| - name: Cache NuGet packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.nuget/packages | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget- | |
| - run: dotnet restore --verbosity minimal | |
| - run: dotnet build --configuration Release -p:ContinuousIntegrationBuild=true -p:DebugType=Embedded -p:VersionPrefix=$VERSION_PREFIX --version-suffix $VERSION_SUFFIX | |
| - name: Run tests (${{ matrix.framework }}) | |
| run: dotnet run --project ./code/WorldDomination.SimpleObservability.Tests/WorldDomination.SimpleObservability.Tests.csproj --configuration Release --no-build --framework ${{ matrix.framework }} | |
| - run: dotnet pack --configuration Release --no-build --output ./artifacts -p:DebugType=Embedded -p:VersionPrefix=$VERSION_PREFIX --version-suffix $VERSION_SUFFIX | |
| if: matrix.framework == env.HIGHEST_FRAMEWORK | |
| - name: Publish artifacts | |
| uses: actions/upload-artifact@v5 | |
| if: matrix.framework == env.HIGHEST_FRAMEWORK | |
| with: | |
| name: NuGetPackage.${{ env.VERSION_PREFIX }}-${{ env.VERSION_SUFFIX }} | |
| path: ./artifacts/ | |
| - name: Publish to GPR | |
| if: matrix.framework == env.HIGHEST_FRAMEWORK | |
| run: | | |
| dotnet nuget push "./artifacts/*.nupkg" \ | |
| --no-symbols \ | |
| --api-key ${{ secrets.GITHUB_TOKEN }} \ | |
| --source https://nuget.pkg.github.com/${{ github.repository_owner }} | |
| test: | |
| name: Build and Test with CodeCov (DEBUG) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| framework: [net8.0, net10.0] | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| - name: Cache NuGet packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.nuget/packages | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget- | |
| - run: dotnet restore --verbosity minimal | |
| - run: dotnet build --configuration Debug | |
| - name: Run tests with code coverage (${{ matrix.framework }}) | |
| run: dotnet run --project ./code/WorldDomination.SimpleObservability.Tests/WorldDomination.SimpleObservability.Tests.csproj --configuration Debug --no-build --framework ${{ matrix.framework }} -- --coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml | |
| - name: Code coverage | |
| if: matrix.framework == env.HIGHEST_FRAMEWORK | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./code/WorldDomination.SimpleObservability.Tests/**/coverage.cobertura.xml | |
| fail_ci_if_error: true |