1515 language : [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
1616
1717 steps :
18- - uses : actions/checkout@v5
18+ - uses : actions/checkout@v6
1919
2020 # Conditionally run actions based on files modified by PR, feature branch or pushed commits
2121 - uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
@@ -101,7 +101,7 @@ jobs:
101101
102102 - name : Upload test results
103103 if : steps.changes.outputs.src == 'true'
104- uses : actions/upload-artifact@v4
104+ uses : actions/upload-artifact@v6
105105 with :
106106 name : ${{ matrix.language }}-test-results
107107 path : |
@@ -122,26 +122,27 @@ jobs:
122122 steps :
123123 - name : Check if compile-and-test job failed to complete, if so fail
124124 if : ${{ needs.compile-and-test.result == 'failure' }}
125- uses : actions/github-script@v7
125+ uses : actions/github-script@v8
126126 with :
127127 script : |
128128 core.setFailed('Test run job failed')
129129
130130 - name : Collect test results
131- uses : actions/download-artifact@v5
131+ uses : actions/download-artifact@v7
132132
133133 - name : Validate test results
134134 run : |
135- if [[ ! -n "$(find . -name 'test_report_*' -print -quit)" ]]; then
135+ mapfile -t test_reports < <(find . -name 'test_report_*.json')
136+ if [[ ${#test_reports[@]} -eq 0 ]]; then
136137 echo "No test results found"
137138 exit 0
138139 fi
139140
140- for json_report in *-test-results/test_report_*
141+ for json_report in "${test_reports[@]}"
141142 do
142- jq --raw-output '"PASS \(map(select(.pass == true)) | length)/\(length)'" $json_report\"" "$json_report"
143+ jq --raw-output '"PASS \(map(select(.pass == true)) | length)/\(length)"' "$json_report"
143144 done
144- FAILING_TESTS=$(jq --raw-output '.[] | select(.pass == false)' *-test-results/test_report_*.json )
145+ FAILING_TESTS=$(jq --raw-output '.[] | select(.pass == false)' "${test_reports[@]}" )
145146 if [[ ! -z "$FAILING_TESTS" ]]; then
146147 echo "ERROR: The following tests failed:"
147148 echo $FAILING_TESTS | jq .
@@ -157,7 +158,7 @@ jobs:
157158 language : [ 'csharp', 'java' ]
158159
159160 steps :
160- - uses : actions/checkout@v5
161+ - uses : actions/checkout@v6
161162 with :
162163 submodules : true
163164
@@ -190,7 +191,7 @@ jobs:
190191 language : [ 'csharp', 'java' ]
191192
192193 steps :
193- - uses : actions/checkout@v5
194+ - uses : actions/checkout@v6
194195 with :
195196 submodules : true
196197
@@ -218,7 +219,7 @@ jobs:
218219 needs : compile-and-test
219220
220221 steps :
221- - uses : actions/checkout@v5
222+ - uses : actions/checkout@v6
222223
223224 - uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
224225 id : changes
0 commit comments