Skip to content

Commit bd10506

Browse files
committed
feat(check-extension): add unified gate step to know if successful
1 parent 5bee6a4 commit bd10506

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/check-extension.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,4 +306,19 @@ jobs:
306306
with:
307307
name: sandbox-data-${{ fromJSON(steps.magento-version.outputs.version) }}
308308
path: ${{ steps.setup-magento.outputs.path }}/dev/tests/integration/tmp/sandbox-*
309-
retention-days: 3
309+
retention-days: 3
310+
311+
gate:
312+
name: Check Extension Success
313+
runs-on: ubuntu-latest
314+
needs: [compute_resolved, unit-test-extension, compile-extension, compute_latest_matrix, coding-standard, integration_test]
315+
if: always()
316+
steps:
317+
- name: Check results
318+
run: |
319+
if [[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
320+
echo "One or more jobs failed or were cancelled:"
321+
echo '${{ toJSON(needs.*.result) }}'
322+
exit 1
323+
fi
324+
echo "All jobs succeeded or were skipped."

0 commit comments

Comments
 (0)