Skip to content

Commit 74f4fdf

Browse files
committed
feat(check-store): add unified gate step to know if successful
1 parent bd10506 commit 74f4fdf

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/check-store.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,4 +246,19 @@ jobs:
246246
- uses: graycoreio/github-actions-magento2/smoke-test@main
247247
if: contains(fromJSON(needs.compute_matrix.outputs.resolved)['smoke-test'].probes, 'graphql')
248248
with:
249-
kind: graphql
249+
kind: graphql
250+
251+
gate:
252+
name: Check Store Success
253+
runs-on: ubuntu-latest
254+
needs: [compute_matrix, unit-test, coding-standard, smoke-test]
255+
if: always()
256+
steps:
257+
- name: Check results
258+
run: |
259+
if [[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
260+
echo "One or more jobs failed or were cancelled:"
261+
echo '${{ toJSON(needs.*.result) }}'
262+
exit 1
263+
fi
264+
echo "All jobs succeeded or were skipped."

0 commit comments

Comments
 (0)