From 32631e4a7cf0c9eca0aaa820b9908ebb2b58a409 Mon Sep 17 00:00:00 2001 From: elchananarb Date: Tue, 14 Jan 2025 17:07:46 +0200 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9bebf55..117e8fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,12 +1,9 @@ name: Checkmarx One Visual Studio Extension CI - on: pull_request: workflow_dispatch: - permissions: contents: write - jobs: integration-tests: runs-on: windows-latest @@ -31,8 +28,11 @@ jobs: with: msbuild-architecture: 'x64' - - name: Install Newtonsoft.Json - run: dotnet add package Newtonsoft.Json + - name: Install Required Packages + run: | + dotnet add ast-visual-studio-extension-tests/ast-visual-studio-extension-tests.csproj package Newtonsoft.Json + dotnet add ast-visual-studio-extension-tests/ast-visual-studio-extension-tests.csproj package Microsoft.NET.Test.Sdk + dotnet add ast-visual-studio-extension-tests/ast-visual-studio-extension-tests.csproj package coverlet.collector - name: Restore NuGet packages run: nuget restore @@ -46,7 +46,7 @@ jobs: - name: Run Tests with Coverage env: CX_APIKEY: ${{ secrets.CX_APIKEY }} - run: dotnet test ./ast-visual-studio-extension-tests/ast-visual-studio-extension-tests.csproj --configuration Release /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput=./coverage/coverage.xml + run: dotnet test ast-visual-studio-extension-tests/ast-visual-studio-extension-tests.csproj --configuration Release /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput=./coverage/coverage.xml - name: Upload Coverage Report uses: actions/upload-artifact@v3