9595 id-token : write
9696 packages : write
9797 pull-requests : write
98+ outputs :
99+ digest : ${{ steps.inspect-manifest.outputs.digest }}
98100 steps :
99101 - uses : step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
100102 with :
@@ -195,8 +197,35 @@ jobs:
195197 UPDATED_NOTES=${UPDATED_NOTES//'{{ amp-devcontainer-${{ matrix.flavor }}-sha }}'/'${{ steps.inspect-manifest.outputs.digest }}'}
196198 gh release edit ${{ github.ref_name }} --notes "${UPDATED_NOTES}"
197199
198- # integration_test:
199-
200+ integration-test :
201+ if : github.event_name == 'pull_request'
202+ strategy :
203+ matrix :
204+ flavor : ["cpp", "rust"]
205+ runner : ["ubuntu-latest", "ubuntu-24.04-arm"]
206+ needs : merge-image
207+ runs-on : ${{ matrix.runner }}
208+ container : ghcr.io/${{ github.repository }}-${{ matrix.flavor }}@${{ needs.merge-image.outputs.digest }}
209+ steps :
210+ - uses : step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
211+ with :
212+ egress-policy : audit
213+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
214+ with :
215+ persist-credentials : false
216+ - uses : actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
217+ if : matrix.flavor == 'cpp'
218+ with :
219+ path : test/.xwin-cache
220+ key : xwin-cache
221+ restore-keys : |
222+ xwin-cache
223+ - run : bats --formatter junit test/${{ matrix.flavor }}/integration-tests.bats | tee test-report-${{ matrix.flavor }}-${{ matrix.runner }}.xml
224+ - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
225+ if : always()
226+ with :
227+ name : test-results-${{ matrix.flavor }}-${{ matrix.runner }}
228+ path : test-report-*.xml
200229
201230 acceptance-test :
202231 if : github.event_name == 'pull_request'
@@ -206,11 +235,21 @@ jobs:
206235 with :
207236 flavor : cpp
208237
209- # publish_test_results:
210- # if: github.event_name == 'pull_request'
211- # needs: [acceptance-test, integration-test]
212- # runs-on: ubuntu-latest
213- # steps:
214- # - name: Publish test results
215- # run: |
216- # set -Eeuo pipefail
238+ publish-test-results :
239+ runs-on : ubuntu-latest
240+ permissions :
241+ checks : write
242+ pull-requests : write
243+ needs : [acceptance-test, integration-test]
244+ if : always()
245+ steps :
246+ - uses : step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
247+ with :
248+ egress-policy : audit
249+ - uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
250+ with :
251+ merge-multiple : true
252+ pattern : test-results-*
253+ - uses : EnricoMi/publish-unit-test-result-action@3a74b2957438d0b6e2e61d67b05318aa25c9e6c6 # v2.20.0
254+ with :
255+ files : test-report-*.xml
0 commit comments