From f32846c1c4e2e959364361dc3c03bad8865f1977 Mon Sep 17 00:00:00 2001 From: Erik Mavrinac Date: Mon, 5 Feb 2024 10:32:58 -0800 Subject: [PATCH] Use Powershell in test step --- .github/workflows/CI.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8714588..98a1b12 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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