Refactor integration tests to use shared database setup and teardown … #18
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: .NET | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| linux-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore TownSuite.Dapper.Extras.sln | |
| - name: Build | |
| run: dotnet build TownSuite.Dapper.Extras.sln --no-restore -c Release | |
| - name: Test | |
| run: cwd=`pwd` && dotnet vstest "TownSuite.DapperExtras.Tests/bin/Release/net8.0/TownSuite.DapperExtras.Tests.dll" --logger:"trx;LogFileName=$cwd/TownSuite.DapperExtras.Tests/bin/Release/net8.0/nunit-result.trx" | |
| - name: Archive test results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results | |
| path: | | |
| TownSuite.DapperExtras.Tests/bin/Release/net8.0/nunit-result.trx | |
| retention-days: 1 | |
| - name: Archive nuget package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: "TownSuite.DapperExtras.AnyCPU" | |
| path: | | |
| TownSuite.DapperExtras/bin/Release/*.nupkg | |
| retention-days: 1 |