From c385f60337bab28c9175783192d4594bba58a0bd Mon Sep 17 00:00:00 2001 From: Mathieu Fenniak Date: Fri, 6 Feb 2026 09:32:03 -0700 Subject: [PATCH] test: add end-to-end test for accessing 'needs' in a dynamic matrix --- actions/example-matrix-dynamic/.forgejo/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/actions/example-matrix-dynamic/.forgejo/workflows/test.yml b/actions/example-matrix-dynamic/.forgejo/workflows/test.yml index 170a009b..57a9bb89 100644 --- a/actions/example-matrix-dynamic/.forgejo/workflows/test.yml +++ b/actions/example-matrix-dynamic/.forgejo/workflows/test.yml @@ -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