Skip to content

Commit

Permalink
Use Powershell in test step
Browse files Browse the repository at this point in the history
  • Loading branch information
erikmav committed Feb 5, 2024
1 parent a03d8d4 commit f32846c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ jobs:
- run: dotnet build --configuration Release --no-restore
- name: Install ProjFS feature and run tests
run: |
enable-WindowsOptionalFeature -online -featurename client-projfs
if not '%ERRORLEVEL%' == '0' do (
echo ERROR: Failed to install ProjFS with errorlevel %ERRORLEVEL%
exit /b 1
)
Set-StrictMode -Version latest
$ErrorActionPreference = "Stop"
enable-WindowsOptionalFeature -online -featurename client-projfs
dotnet test --no-build
shell: cmd
shell: powershell

0 comments on commit f32846c

Please sign in to comment.