Skip to content
Merged
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
55 changes: 0 additions & 55 deletions .github/workflows/apply.yaml

This file was deleted.

58 changes: 46 additions & 12 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ on:
permissions:
contents: read

# those variables are used by the majority of jobs and we don't want to repeat them in each job
env:
BOLT_WINRM_USER: roddypiper
BOLT_WINRM_HOST: localhost
BOLT_WINRM_PORT: 5985
BOLT_WINRM_SSL_PORT: 5986
BOLT_WINRM_SMB_PORT: 445

jobs:
rubocop_and_matrix:
runs-on: ubuntu-24.04
Expand Down Expand Up @@ -100,12 +108,6 @@ jobs:
needs:
- rubocop_and_matrix
- cache_modules
env:
BOLT_WINRM_USER: roddypiper
BOLT_WINRM_HOST: localhost
BOLT_WINRM_PORT: 5985
BOLT_WINRM_SSL_PORT: 5986
BOLT_WINRM_SMB_PORT: 445
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -141,12 +143,6 @@ jobs:
needs:
- rubocop_and_matrix
- cache_modules
env:
BOLT_WINRM_USER: roddypiper
BOLT_WINRM_HOST: localhost
BOLT_WINRM_PORT: 5985
BOLT_WINRM_SSL_PORT: 5986
BOLT_WINRM_SMB_PORT: 445
name: WinRM Transport
runs-on: windows-latest
strategy:
Expand All @@ -173,6 +169,43 @@ jobs:
Set-ActiveRubyFromPuppet
- name: WinRM transport tests
run: bundle exec rake ci:winrm_transport

apply:
name: bolt apply
needs:
- rubocop_and_matrix
- cache_modules
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, windows-2025]
ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Cache modules
id: modules
uses: actions/cache@v4
with:
path: modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/Puppetfile') }}
- if: matrix.os == 'ubuntu-22.04'
uses: ./.github/actions/sudo_setup
- if: matrix.os == 'windows-latest'
uses: ./.github/actions/windows_agent_setup
- if: matrix.os == 'ubuntu-22.04'
name: Run tests
run: bundle exec rake ci:apply:linux
- if: matrix.os == 'windows-latest'
name: Run tests
run: bundle exec rake ci:apply:windows

tests:
needs:
- rubocop_and_matrix
Expand All @@ -181,6 +214,7 @@ jobs:
- run-dita
- local_transports
- winrm_transport
- apply
runs-on: ubuntu-24.04
name: Test suite
steps:
Expand Down
Loading