Add more tests: fossil, history, presence, join (#11) #95
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: Test | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| # Prevent duplicate builds on internal PRs. | |
| if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| dotnet-version: ['6.0.x', '8.0.x', '9.0.x', '10.0.x'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: | | |
| ${{ matrix.dotnet-version }} | |
| 10.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore --configuration Release | |
| - name: Run Unit Tests | |
| if: matrix.os != 'ubuntu-latest' | |
| run: dotnet test --no-build --configuration Release --verbosity normal --filter "FullyQualifiedName!~IntegrationTests" | |
| - name: Start Centrifugo | |
| if: matrix.os == 'ubuntu-latest' | |
| run: docker compose up -d --wait | |
| - name: Run All Tests (Unit + Integration) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: dotnet test --no-build --configuration Release --verbosity normal --collect:"XPlat Code Coverage" | |
| - name: Stop Centrifugo | |
| if: matrix.os == 'ubuntu-latest' && always() | |
| run: docker compose down |