Skip to content

Commit

Permalink
winget?
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Didrichsen <[email protected]>
  • Loading branch information
gavindidrichsen committed Mar 21, 2024
1 parent ef8e2a6 commit 1b02372
Showing 1 changed file with 4 additions and 38 deletions.
42 changes: 4 additions & 38 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,42 +19,8 @@ defaults:
shell: powershell

jobs:
spec:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-2022]
tag: [General, Unit]
include:
- tag: General
results_file: General.Results.xml
- tag: Unit
results_file: Unit.Results.xml

steps:
- name: "checkout"
uses: actions/checkout@v3

- name: "install modules"
uses: potatoqualitee/[email protected]
with:
shell: powershell
modules-to-cache: ${{ env.module_cache }}

- name: "configure winrm"
run: |
Write-Host 'Ensuring WinRM is configured for DSC'
Get-ChildItem WSMan:\localhost\Listener\ -OutVariable Listeners | Format-List * -Force
$HTTPListener = $Listeners | Where-Object -FilterScript { $_.Keys.Contains('Transport=HTTP') }
If ($HTTPListener.Count -eq 0) {
winrm create winrm/config/Listener?Address=*+Transport=HTTP
winrm e winrm/config/listener
}
acceptance:
runs-on: ${{ matrix.os }}
needs: "spec"
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -98,10 +64,10 @@ jobs:
winrm e winrm/config/listener
}
# - name: Install Winget
# shell: pwsh
# run: |
# winget || iwr -useb https://aka.ms/winget/install | iex
- name: Install Winget
run: |
winget --help
# winget || iwr -useb https://aka.ms/winget/install | iex
- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down

0 comments on commit 1b02372

Please sign in to comment.