Skip to content

Commit

Permalink
Add a name to the GHA beaker test matrix
Browse files Browse the repository at this point in the history
Adding a name means the GHA job can use ${{ matrix.name }} instead of
specific properties. This means puppet_metadata is in control of naming
jobs instead of the individual action. It opens the path to other tests.
For example, beaker supports multiple suites. Those could run as
individual entries and reported.
  • Loading branch information
ekohl committed Oct 7, 2023
1 parent 5ffbf79 commit 9b63919
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 68 deletions.
1 change: 1 addition & 0 deletions lib/puppet_metadata/github_actions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def github_action_test_matrix
next if puppet_version_below_minimum?(puppet_version[:value])

matrix_include << {
name: "#{puppet_version[:name]} - #{setfile[1]}",
setfile: {
name: setfile[1],
value: setfile[0],
Expand Down
Loading

0 comments on commit 9b63919

Please sign in to comment.