File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 30
30
runs-on : ${{ inputs.runs_on }}
31
31
outputs :
32
32
acceptance_matrix : ${{ steps.get-matrix.outputs.matrix }}
33
+ ruby_version : ${{ steps.get-puppet_ruby_version.outputs.ruby_version }}
34
+ puppet_version : ${{ steps.get-puppet_ruby_version.outputs.puppet_version }}
33
35
34
36
env :
35
37
BUNDLE_WITHOUT : release_prep
56
58
run : |
57
59
bundle exec matrix_from_metadata_v2 ${{ inputs.flags }}
58
60
61
+ - name : Setup Ruby Version and Setup Puppet Version
62
+ id : get-puppet_ruby_version
63
+ run : |
64
+ echo ${{ toJSON(steps.get-matrix.outputs.spec_matrix ) }} | jq -r '.include | .[0] | to_entries[] | "\(.key)=\(.value)"' >> $GITHUB_OUTPUT
65
+
59
66
acceptance :
60
- name : " Acceptance tests (${{matrix.platforms.label}}, ${{matrix.collection}})"
67
+ name : " Acceptance tests (${{matrix.platforms.label}}, ${{matrix.collection}}) - ruby: ${{needs.setup_matrix.outputs.ruby_version}} puppet: ${{needs.setup_matrix.outputs.puppet_version}} "
61
68
needs : " setup_matrix"
62
69
runs-on : ${{ inputs.runs_on }}
63
70
timeout-minutes : 180
67
74
68
75
env :
69
76
BUNDLE_WITHOUT : release_prep
70
- PUPPET_GEM_VERSION : ' ~> 7.24 '
77
+ PUPPET_GEM_VERSION : ${{needs.setup_matrix.outputs.puppet_version}}
71
78
FACTER_GEM_VERSION : ' https://github.com/puppetlabs/facter#main' # why is this set?
72
79
73
80
steps :
88
95
- name : " Setup ruby"
89
96
uses : " ruby/setup-ruby@v1"
90
97
with :
91
- ruby-version : " 2.7 "
98
+ ruby-version : ${{needs.setup_matrix.outputs.ruby_version}}
92
99
bundler-cache : true
93
100
94
101
- name : " Bundle environment"
You can’t perform that action at this time.
0 commit comments