7
7
name : " Setup Test Matrix"
8
8
runs-on : ubuntu-20.04
9
9
outputs :
10
- matrix : ${{ steps.build -matrix.outputs.matrix }}
10
+ matrix : ${{ steps.set -matrix.outputs.matrix }}
11
11
12
12
steps :
13
13
- name : Checkout Source
@@ -34,19 +34,19 @@ jobs:
34
34
- name : Set latest release
35
35
id : latest_release
36
36
run : |
37
- out=$(jq -c '[.[] | select(.lts == false)][0].latest | {"collection ": [.]}' <<<'${{ steps.curl_forge.outputs.forge_response }}')
37
+ out=$(jq -c '[.[] | select(.lts == false)][0].latest | {"pe_version ": [.]}' <<<'${{ steps.curl_forge.outputs.forge_response }}')
38
38
echo "latest=$out" >> $GITHUB_OUTPUT
39
- - name : Setup Spec Test Matrix
40
- id : set -matrix
39
+ - name : Build Test Matrix
40
+ id : build -matrix
41
41
run : |
42
- echo "matrix={\"platforms\":[\"rhel-8\",\"rhel-9\",\"sles-15\",\"ubuntu-2204-lts\"]}" >> $GITHUB_OUTPUT
42
+ bundle exec matrix_from_metadata_v3 --provision-exclude docker --arch-exclude arm --platform-exclude debian
43
43
- name : Setup Acceptance Test Matrix
44
- id : build -matrix
44
+ id : set -matrix
45
45
run : |
46
- out=$(echo '${{ steps.set -matrix.outputs.matrix }}' | jq -c --argjson latest '${{ steps.latest_release.outputs.latest }}' '.collection += $latest.collection ')
46
+ out=$(echo '${{ steps.build -matrix.outputs.matrix }}' | jq -c --argjson latest '${{ steps.latest_release.outputs.latest }}' '.pe_version += $latest.pe_version ')
47
47
echo "matrix=$out" >> $GITHUB_OUTPUT
48
48
Integration :
49
- name : " ${{matrix.platforms}}, ${{matrix.collection }}"
49
+ name : " ${{matrix.platforms.label }}, ${{matrix.pe_version }}"
50
50
needs :
51
51
- setup_matrix
52
52
if : ${{ needs.setup_matrix.outputs.matrix != '{}' }}
78
78
echo ::endgroup::
79
79
- name : Provision test environment
80
80
run : |
81
- bundle exec bolt --modulepath spec/fixtures/modules plan run splunk_hec::acceptance::provision_machines using='provision_service' image='${{ matrix.platforms }}'
81
+ bundle exec bolt --modulepath spec/fixtures/modules plan run splunk_hec::acceptance::provision_machines using='provision_service' image='${{ matrix.platforms.image }}'
82
82
echo ::group::=== REQUEST ===
83
83
cat request.json || true
84
84
echo
96
96
echo INVENTORY_PATH=$FILE >> $GITHUB_ENV
97
97
- name : Install server
98
98
run : |
99
- bundle exec bolt --modulepath spec/fixtures/modules plan run splunk_hec::acceptance::server_setup puppet_version='${{ matrix.collection }}' -i ./$INVENTORY_PATH --stream
99
+ bundle exec bolt --modulepath spec/fixtures/modules plan run splunk_hec::acceptance::server_setup puppet_version='${{ matrix.pe_version }}' -i ./$INVENTORY_PATH --stream
100
100
- name : Install module
101
101
run : |
102
102
bundle exec rake 'litmus:install_module'
0 commit comments