Skip to content

Commit 0c8434e

Browse files
committed
CI: Move BoltSpec tests to central workflow
This allows us to properly depend on the job.
1 parent f9fa601 commit 0c8434e

File tree

2 files changed

+37
-56
lines changed

2 files changed

+37
-56
lines changed

.github/workflows/bolt_spec.yaml

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

.github/workflows/tests.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,42 @@ jobs:
206206
name: Run tests
207207
run: bundle exec rake ci:apply:windows
208208

209+
boltspec:
210+
name: BoltSpec
211+
needs:
212+
- rubocop_and_matrix
213+
- cache_modules
214+
strategy:
215+
fail-fast: false
216+
matrix:
217+
os: [ubuntu-24.04, windows-2025]
218+
ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
219+
runs-on: ${{ matrix.os }}
220+
steps:
221+
- name: Checkout repository
222+
uses: actions/checkout@v5
223+
- name: Setup Ruby
224+
uses: ruby/setup-ruby@v1
225+
with:
226+
ruby-version: ${{ matrix.ruby }}
227+
bundler-cache: true
228+
- name: Cache modules
229+
id: modules
230+
uses: actions/cache@v4
231+
with:
232+
path: modules
233+
key: ${{ runner.os }}-modules-${{ hashFiles('**/Puppetfile') }}
234+
- if: matrix.os == 'ubuntu-24.04'
235+
uses: ./.github/actions/docker_setup
236+
- if: matrix.os == 'windows-2025'
237+
uses: ./.github/actions/windows_agentless_setup
238+
- name: Run tests
239+
if: matrix.os == 'windows-2025'
240+
run: bundle exec rake ci:boltspec:windows
241+
- name: Run tests
242+
if: matrix.os == 'ubuntu-24.04'
243+
run: bundle exec rake ci:boltspec:linux
244+
209245
tests:
210246
needs:
211247
- rubocop_and_matrix
@@ -215,6 +251,7 @@ jobs:
215251
- local_transports
216252
- winrm_transport
217253
- apply
254+
- boltspec
218255
runs-on: ubuntu-24.04
219256
name: Test suite
220257
steps:

0 commit comments

Comments
 (0)