Setup #4
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: [ "**" ] | |
| pull_request: | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-latest, ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| # Install both SDKs so tests can run where applicable | |
| - name: Setup .NET 6 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: "6.0.x" | |
| - name: Setup .NET 8 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: "8.0.x" | |
| - name: Restore | |
| run: dotnet restore src/FluentNHibernate.sln | |
| - name: Build | |
| run: dotnet build src/FluentNHibernate.sln -c Release --no-restore | |
| # Windows: run net48 tests (works natively) | |
| - name: Test (net48) | |
| if: runner.os == 'Windows' | |
| run: dotnet test src/FluentNHibernate.sln -c Release --no-build -f net48 | |
| # Linux: run net6 tests | |
| - name: Test (net6.0) | |
| if: runner.os != 'Windows' | |
| run: dotnet test src/FluentNHibernate.sln -c Release --no-build -f net6.0 |