Skip to content

Commit

Permalink
Use sc.exe to get service status
Browse files Browse the repository at this point in the history
  • Loading branch information
pjanotti committed Oct 10, 2023
1 parent c545d9a commit 095a29a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build-and-test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,19 @@ 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
- uses: actions/setup-go@v4
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
Expand Down

0 comments on commit 095a29a

Please sign in to comment.