Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
elchananarb committed Jan 14, 2025
1 parent 5cdd74a commit 32631e4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 32631e4

Please sign in to comment.