Drop unsupported DB versions and add tests for new versions #142
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: Unit Tests | |
| on: | |
| pull_request: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| jobs: | |
| unit_tests: | |
| if: github.event.pull_request.draft == false | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Add msbuild to PATH | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: msbuild SQLSchemaCompare.sln /p:Configuration=Release | |
| - name: Test | |
| run: dotnet test SQLSchemaCompare.Test --no-build --configuration Release --logger trx --filter Category!=IntegrationTest | |
| - name: Publish Test Results | |
| uses: EnricoMi/publish-unit-test-result-action/composite@v2 | |
| if: always() | |
| with: | |
| check_name: "Unit Test Results" | |
| files: SQLSchemaCompare.Test/TestResults/*.trx |