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 b6e06c8 commit bbe2a25
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,37 @@ jobs:
- name: Fetch Sources
uses: actions/checkout@v4

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

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

# Add Visual Studio components including SDK
- name: Add MSBuild to PATH
# Install Visual Studio components with VSSDK
- name: Install Visual Studio components
uses: microsoft/[email protected]
with:
vs-version: '17.2'
vs-prerelease: false
include-prerelease: false

# Install System.Resources.Extensions explicitly
- name: Install System.Resources.Extensions
# Install VSSDK
- name: Install VSSDK
run: |
dotnet add .\ast-visual-studio-extension\ast-visual-studio-extension.csproj package System.Resources.Extensions -v 8.0.0
dotnet add .\ast-visual-studio-extension-tests\ast-visual-studio-extension-tests.csproj package System.Resources.Extensions -v 8.0.0
nuget install Microsoft.VSSDK.BuildTools -Version 17.0.5232
# Restore packages
- name: Restore NuGet packages
run: |
nuget restore .
dotnet restore .
# Build with specific properties to handle resources
# Build with resource generation property
- name: Build
run: |
msbuild /p:Configuration=Release /p:DeployExtension=False /p:GenerateResourceUsePreserializedResources=true
# Run tests if build succeeds
# Run tests with coverage
- name: Run Tests with Code Coverage
shell: pwsh
env:
Expand Down

0 comments on commit bbe2a25

Please sign in to comment.