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 2b48928 commit 5cdd74a
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,46 @@ permissions:
jobs:
integration-tests:
runs-on: windows-latest

permissions:
contents: write

steps:
- name: Fetch Sources
uses: actions/checkout@v4


- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'

- name: Setup VSTest
uses: darenm/Setup-VSTest@v1

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: 'x64'


- name: Install Newtonsoft.Json
run: dotnet add package Newtonsoft.Json

- name: Restore NuGet packages
run: nuget restore

- name: Restore .NET Packages
run: dotnet restore

- name: Build Solution
run: msbuild /p:Configuration=Release /p:DeployExtension=False

- 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

- name: Upload Coverage Report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: ./coverage/coverage.xml
path: ./coverage/coverage.xml

0 comments on commit 5cdd74a

Please sign in to comment.