Skip to content

Commit

Permalink
Merge pull request #840 from bastelfreak/runners
Browse files Browse the repository at this point in the history
CI: Make runners configureable
  • Loading branch information
bastelfreak committed Jun 30, 2023
2 parents 88ce96f + 73dfcec commit b1e668c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion moduleroot/.github/workflows/ci.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,15 @@ jobs:
uses: voxpupuli/gha-puppet/.github/workflows/beaker.yml@v1
with:
pidfile_workaround: '<%= @configs['pidfile_workaround'] %>'
<%- if @configs['unit_runs_on'] -%>
unit_runs_on: '<%= @configs['unit_runs_on'] %>'
<%- end -%>
<%- if @configs['acceptance_runs_on'] -%>
acceptance_runs_on: '<%= @configs['acceptance_runs_on'] %>'
<%- end -%>
<%- else -%>
uses: voxpupuli/gha-puppet/.github/workflows/basic.yml@v1
<%- if @configs.key?('rubocop') || !@configs['additional_packages'].empty? -%>
<%- if @configs.key?('rubocop') || !@configs['additional_packages'].empty? || @configs.key?('unit_runs_on') -%>
with:
<%- end -%>
<%- end -%>
Expand All @@ -29,3 +35,6 @@ jobs:
<%- if @configs.key?('rubocop') -%>
rubocop: <%= @configs['rubocop'] %>
<%- end -%>
<%- if Dir[File.join(@metadata[:workdir], 'spec', 'acceptance', '**', '*_spec.rb')].none? && @configs['unit_runs_on'] -%>
unit_runs_on: '<%= @configs['unit_runs_on'] %>'
<%- end -%>

0 comments on commit b1e668c

Please sign in to comment.