Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ permissions:
jobs:
integration:
name: Integration
runs-on: windows-latest
runs-on: windows-2025
strategy:
matrix:
ruby: [3.2]
Expand All @@ -43,9 +43,29 @@ jobs:
- name: Install modules
if: steps.modules.outputs.cache-hit != 'true'
run: bundle exec r10k puppetfile install
- name: Output powershell version
run: $PSVersionTable
- name: List trusted WSMan hosts
run: Get-Item WSMan:\localhost\Client\TrustedHosts
- name: Output WinRM logs
run: winrm enumerate winrm/config/listener
- name: Test WSMan connection
run: Test-WSMan localhost
- uses: ./.github/actions/windows_agent_setup
- name: Run tests
run: bundle exec rake ci:windows:integration
- name: Run test
run: bundle exec rake ci:windows:integration --trace -v
- name: Sessions
if: always()
run: Get-PSSession
- name: Test WSMan connection
if: always()
run: Test-WSMan localhost
- name: Print EventLog
if: always()
run: winrm enumerate winrm/config/Listener
- name: Print EventLog
if: always()
run: Get-WinEvent -ListLog *winrm* | fl *

agentless:
name: Agentless
Expand Down
1 change: 1 addition & 0 deletions scripts/ci.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,5 @@ Enable-PSRemoting
Set-WSManQuickConfig -Force
Set-WinRMHostConfiguration
Test-WinRMConfiguration @User | Out-Null
winrm enumerate winrm/config/Listener
Add-Content -Path $ENV:GITHUB_ENV -Value "BOLT_WINRM_PASSWORD=$pass"
3 changes: 2 additions & 1 deletion spec/integration/apply_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@

# The following are run with both *nix and Windows targets.
shared_examples 'agentful tests' do |targets|
it 'runs a ruby task' do
it 'lists all modules & runs a ruby task' do
run_cli_json(%w[module show], project: project)
results = run_cli_json(%W[task run basic::ruby_task -t #{targets}], project: project)

results['items'].each do |result|
Expand Down
Loading