test: add end-to-end test for accessing 'needs' in a dynamic matrix

This commit is contained in:
Mathieu Fenniak 2026-02-06 09:32:03 -07:00
parent be5b4438fa
commit c385f60337

View file

@ -47,3 +47,6 @@ jobs:
set -x
[ "${{ matrix.dimension-1 }}" = "d1 v1" ] || [ "${{ matrix.dimension-1 }}" = "d1 v2" ] || exit 1
[ "${{ matrix.dimension-2 }}" = "d2 v1" ] || [ "${{ matrix.dimension-2 }}" = "d2 v2" ] || exit 1
# should still be able to access other needs references unrelated to the dynamic matrix of this job
[ "${{ needs.define-matrix.outputs.scalar-value }}" = "scalar value" ] || exit 1