Skip to content

docs: complete the YARD tags on the provisioner #6

docs: complete the YARD tags on the provisioner

docs: complete the YARD tags on the provisioner #6

Workflow file for this run

---
name: "Windows Integration"
"on":
pull_request:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: windows-integration-${{ github.ref }}
cancel-in-progress: true
jobs:
windows:
name: Kitchen Verify on Windows (Ruby ${{ matrix.ruby }})
runs-on: windows-latest
timeout-minutes: 30
env:
# kitchen.windows.yml points the proxy driver at this account over WinRM
MACHINE_USER: test_user
MACHINE_PASS: Pass@word1
KITCHEN_YAML: kitchen.windows.yml
strategy:
fail-fast: false
matrix:
ruby: ["3.1", "3.4", "4.0"]
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Set up WinRM and the local test account
shell: powershell
run: |
winrm quickconfig -q
# Runners ship with basic/unencrypted WinRM disabled, and local
# admins are filtered over the network by default.
winrm set winrm/config/service/auth '@{Basic="true"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
New-ItemProperty `
-Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System `
-Name LocalAccountTokenFilterPolicy -Value 1 -PropertyType DWord -Force | Out-Null
net user /add $env:MACHINE_USER $env:MACHINE_PASS
net localgroup administrators $env:MACHINE_USER /add
- name: Report the DSC engine in use
shell: powershell
run: |
$PSVersionTable | Format-List
Get-DscLocalConfigurationManager | Format-List
- name: Show the resolved provisioner configuration
run: bundle exec kitchen diagnose --no-instances --loader
- name: Kitchen Verify
run: bundle exec kitchen verify
- name: Collect diagnostics on failure
if: failure()
shell: powershell
run: |
Get-ChildItem -Recurse C:\configurations -ErrorAction SilentlyContinue |
Select-Object -ExpandProperty FullName
Get-DscConfigurationStatus -All -ErrorAction SilentlyContinue |
Format-List