Skip to content

NCO-62: Fix TCP socket leaks via DI disposal cascade #75

NCO-62: Fix TCP socket leaks via DI disposal cascade

NCO-62: Fix TCP socket leaks via DI disposal cascade #75

Workflow file for this run

name: Build & Run Unit Tests
on:
pull_request:
jobs:
build-and-test:
name: Build and Unit Tests (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: 1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
cache: false
- name: Restore
run: dotnet restore Couchbase.Analytics.sln
- name: Build (Release)
run: dotnet build Couchbase.Analytics.sln --configuration Release --no-restore
- name: Test - Couchbase.Analytics.UnitTests
run: dotnet test tests/Couchbase.Analytics.UnitTests/Couchbase.Analytics.UnitTests.csproj --configuration Release --no-build --logger "trx;LogFileName=unit-tests.trx" --results-directory "TestResults"
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v4
with:
name: unit-test-results-${{ matrix.os }}
path: TestResults