Skip to content

Commit 0fb1bda

Browse files
stephanosionashif
authored andcommitted
ci: Add matrix-less checkpoint for test result
This commit adds a new job to the CI workflow that is not a part of a matrix and depends on the distribution bundle test matrix jobs, such that it only runs when the distribution bundle test jobs do not fail (i.e. all distribution bundle tests pass). The purpose of this is to provide a checkpoint which the GitHub branch protection rule can use to enforce the required checks for merging pull requests, because GitHub does not support specifying a job that is part of a matrix for this purpose. Remove this when GitHub is updated to support specifying the steps that are part of matrix jobs for the required checks. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 3a52588 commit 0fb1bda

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,3 +1279,21 @@ jobs:
12791279
name: test_${{ matrix.testenv.name }}_${{ matrix.subset }}
12801280
if-no-files-found: ignore
12811281
path: test/twister-out/twister.xml
1282+
1283+
# Post test result check
1284+
test-result:
1285+
name: Test Result
1286+
needs: [ test-dist-bundle ]
1287+
runs-on: ubuntu-20.04
1288+
1289+
# NOTE: The 'test-result' job depends on the 'test-dist-bundle' job and
1290+
# therefore only runs when all distribution bundle tests pass.
1291+
#
1292+
# The purpose of this job is to provide a checkpoint which the GitHub
1293+
# branch protection rule can use to enforce the required checks for
1294+
# merging pull requests, because GitHub does not support specifying a
1295+
# job that is part of a matrix for this purpose.
1296+
steps:
1297+
- name: Summary
1298+
run: |
1299+
echo "All passed"

0 commit comments

Comments
 (0)