diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 5359ddb..3c523ed 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -51,12 +51,12 @@ jobs: - name: Restore dependencies run: dotnet restore - - name: Restore dependencies with NuGet - run: nuget restore $SOLUTION - - name: Build run: dotnet build $SOLUTION --configuration $BUILD_CONFIG --no-restore + - name: Run tests + run: dotnet test /p:Configuration=$BUILD_CONFIG --no-restore --no-build --verbosity normal + - name: Nuget Pack run: nuget pack _nuget/config.nuspec -Symbols -Version ${{ env.semVer }} @@ -79,9 +79,3 @@ jobs: - name: Nuget Push if: ${{ !startsWith(github.ref, 'refs/pull') }} run: nuget push **/Cross.CQRS.${{ env.semVer }}.symbols.nupkg -ApiKey ${{ secrets.NUGET_API_KEY }} -Source "https://api.nuget.org/v3/index.json" -SkipDuplicate - - - name: Test - run: dotnet test --no-build --verbosity normal - - - name: Run tests - run: dotnet test /p:Configuration=$BUILD_CONFIG --no-restore --no-build --verbosity normal