Skip to content

Commit 8a6eb28

Browse files
authored
Merge pull request #62 from OpenVoxProject/winrm2
CI: Move WinRM transport tests to main pipeline
2 parents 5c6706c + bbd8b30 commit 8a6eb28

File tree

2 files changed

+38
-50
lines changed

2 files changed

+38
-50
lines changed

.github/workflows/tests.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,50 @@ jobs:
119119
name: Run tests
120120
run: bundle exec rake ci:local_transport:windows
121121

122+
winrm_transport:
123+
needs: rubocop_and_matrix
124+
env:
125+
BOLT_WINRM_USER: roddypiper
126+
BOLT_WINRM_HOST: localhost
127+
BOLT_WINRM_PORT: 5985
128+
BOLT_WINRM_SSL_PORT: 5986
129+
BOLT_WINRM_SMB_PORT: 445
130+
name: WinRM Transport
131+
runs-on: windows-latest
132+
strategy:
133+
matrix:
134+
ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
135+
steps:
136+
- name: Checkout repository
137+
uses: actions/checkout@v4
138+
- name: Setup Ruby
139+
uses: ruby/setup-ruby@v1
140+
with:
141+
ruby-version: ${{ matrix.ruby }}
142+
bundler-cache: true
143+
- name: Cache modules
144+
id: modules
145+
uses: actions/cache@v4
146+
with:
147+
path: modules
148+
key: ${{ runner.os }}-modules-${{ hashFiles('**/Puppetfile') }}
149+
- name: Install modules
150+
if: steps.modules.outputs.cache-hit != 'true'
151+
run: bundle exec r10k puppetfile install
152+
- name: Configure WinRM and use Puppet's Ruby
153+
shell: powershell
154+
run: |
155+
. scripts\ci.ps1
156+
Set-ActiveRubyFromPuppet
157+
- name: WinRM transport tests
158+
run: bundle exec rake ci:winrm_transport
122159
tests:
123160
needs:
124161
- rubocop_and_matrix
125162
- unit
126163
- run-dita
127164
- local_transports
165+
- winrm_transport
128166
runs-on: ubuntu-24.04
129167
name: Test suite
130168
steps:

.github/workflows/winrm_transport.yaml

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)