change: remove SourceBuild property from Directory.Build.props #16
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: | |
| branches: | |
| - "**" | |
| 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 |