From fc26ba30ff79835aa0bfe2652f45dd336340e7db Mon Sep 17 00:00:00 2001 From: ninjanye Date: Thu, 4 Jul 2024 16:28:38 +0100 Subject: [PATCH] Target unit and integration tests only --- .github/workflows/main.yml | 12 ++++++------ BuildNugetPackage.ps1 | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e991586..c22163b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,17 +17,17 @@ jobs: - name: Log version run: echo "Building version ${{ github.ref }}" - - name: Go to project directory - run: cd NinjaNye.SearchExtensions - - name: Restore dependencies run: dotnet restore - name: Build - run: dotnet build --configuration Release --no-restore + run: dotnet build .\NinjaNye.SearchExtensions\ -c Release --no-restore --verbosity minimal - - name: Test - run: dotnet test --no-restore --verbosity normal + - name: Unit Tests + run: dotnet test .\NinjaNye.SearchExtensions.Tests\ --no-restore --verbosity minimal + + - name: Integration Tests + run: dotnet test .\NinjaNye.SearchExtensions.Tests.Integration\ --no-restore --verbosity minimal # - name: Pack # run: dotnet pack --configuration Release --no-build --output ../../nupkgs diff --git a/BuildNugetPackage.ps1 b/BuildNugetPackage.ps1 index 277b17c..578efbe 100644 --- a/BuildNugetPackage.ps1 +++ b/BuildNugetPackage.ps1 @@ -6,3 +6,5 @@ dotnet pack -c Release -o . cd ..\NinjaNye.SearchExtensions.Soundex\ dotnet pack -c Release -o . + +cd ../ \ No newline at end of file