change: removed R3 with custom implementation #28
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 | |
| on: | |
| push: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Restore dependencies | |
| working-directory: src | |
| run: dotnet restore | |
| - name: Build | |
| working-directory: src | |
| run: dotnet build --no-restore --configuration Release | |
| test: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| permissions: | |
| checks: write | |
| pull-requests: write | |
| strategy: | |
| matrix: | |
| test: [ConsoleLogSinkTests, ExtensionsTests, LoggerTests] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Restore dependencies | |
| working-directory: tests/${{ matrix.test }}/src | |
| run: dotnet restore | |
| - name: Test | |
| working-directory: tests/${{ matrix.test }}/src | |
| run: dotnet run --no-restore --configuration Release --report-trx | |
| - name: Publish Test Results | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| if: (!cancelled()) | |
| with: | |
| files: | | |
| tests/${{ matrix.test }}/src/**/*.trx | |
| publish_nuget: | |
| runs-on: ubuntu-latest | |
| needs: test | |
| if: startsWith(github.ref, 'refs/tags/') | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Restore dependencies | |
| working-directory: src | |
| run: dotnet restore | |
| - name: Pack | |
| working-directory: src | |
| run: dotnet pack --no-restore --configuration Release --output ../artifacts | |
| - name: Publish to NuGet.org | |
| run: dotnet nuget push "artifacts/*.nupkg" --api-key "${{ secrets.NUGET_API_KEY }}" --source "https://api.nuget.org/v3/index.json" --skip-duplicate |