Skip to content

Commit 0213f7a

Browse files
authored
Merge pull request #67 from OpenVoxProject/clean
CI: Move BoltSpec tests to central workflow & always use Ubuntu 24.04/Windows 2025
2 parents 062d429 + 92f7163 commit 0213f7a

File tree

2 files changed

+39
-56
lines changed

2 files changed

+39
-56
lines changed

.github/workflows/bolt_spec.yaml

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

.github/workflows/tests.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,44 @@ jobs:
207207
name: Run tests
208208
run: bundle exec rake ci:apply:windows
209209

210+
boltspec:
211+
name: BoltSpec
212+
needs:
213+
- rubocop_and_matrix
214+
- cache_modules
215+
strategy:
216+
fail-fast: false
217+
matrix:
218+
os: [ubuntu-24.04, windows-2025]
219+
# currently fails on Ruby 3.4
220+
#ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
221+
ruby: ['3.2', '3.3']
222+
runs-on: ${{ matrix.os }}
223+
steps:
224+
- name: Checkout repository
225+
uses: actions/checkout@v5
226+
- name: Setup Ruby
227+
uses: ruby/setup-ruby@v1
228+
with:
229+
ruby-version: ${{ matrix.ruby }}
230+
bundler-cache: true
231+
- name: Cache modules
232+
id: modules
233+
uses: actions/cache@v4
234+
with:
235+
path: modules
236+
key: ${{ runner.os }}-modules-${{ hashFiles('**/Puppetfile') }}
237+
- if: runner.os == 'Linux'
238+
uses: ./.github/actions/docker_setup
239+
- if: runner.os == 'Windows'
240+
uses: ./.github/actions/windows_agentless_setup
241+
- name: Run tests
242+
if: runner.os == 'Windows'
243+
run: bundle exec rake ci:boltspec:windows
244+
- name: Run tests
245+
if: runner.os == 'Linux'
246+
run: bundle exec rake ci:boltspec:linux
247+
210248
tests:
211249
needs:
212250
- rubocop_and_matrix
@@ -216,6 +254,7 @@ jobs:
216254
- local_transports
217255
- winrm_transport
218256
- apply
257+
- boltspec
219258
runs-on: ubuntu-24.04
220259
name: Test suite
221260
steps:

0 commit comments

Comments
 (0)