From 095a29acbb59b558682ab5c9883a6344118f1a81 Mon Sep 17 00:00:00 2001 From: Paulo Janotti Date: Tue, 10 Oct 2023 12:48:29 -0700 Subject: [PATCH] Use sc.exe to get service status --- .github/workflows/build-and-test-windows.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-test-windows.yml b/.github/workflows/build-and-test-windows.yml index 5630b203f9a7..b2f4a925a55f 100644 --- a/.github/workflows/build-and-test-windows.yml +++ b/.github/workflows/build-and-test-windows.yml @@ -42,8 +42,9 @@ jobs: - if: matrix.group == 'receiver-0' name: install IIS run: Install-WindowsFeature -name Web-Server -IncludeManagementTools - - name: List Windows services before Install - run: Get-Service | Sort DisplayName | fl + - name: List Windows services BEFORE Install + run: sc.exe query type= service + continue-on-error: true - if: matrix.group == 'receiver-0' name: Install Active Directory DS run: Install-WindowsFeature -name AD-Domain-Services -IncludeManagementTools @@ -51,8 +52,9 @@ jobs: with: go-version: ~1.20.8 cache: false - - name: List Windows services after Install - run: Get-Service | Sort DisplayName | fl + - name: List Windows services AFTER Install + run: sc.exe query type= service + continue-on-error: true - name: Cache Go id: go-mod-cache timeout-minutes: 15