forked from jpogran/PuppetDscBuilder
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Gavin Didrichsen <[email protected]>
- Loading branch information
1 parent
ef8e2a6
commit 1b02372
Showing
1 changed file
with
4 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|