Skip to content

Commit 6bed8d2

Browse files
authored
Merge pull request JeffersonLab#127 from c-dilks/summary
ci: add final job, to be required as a trunk branch protection rule
2 parents 913c80b + 1fd9951 commit 6bed8d2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/maven.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,18 @@ jobs:
9595
run: tar xzvf coatjava.tar.gz
9696
- name: test run-groovy
9797
run: coatjava/bin/run-groovy validation/advanced-tests/test-run-groovy.groovy
98+
99+
final:
100+
needs:
101+
- test_coatjava
102+
- test_run-groovy
103+
runs-on: ubuntu-latest
104+
if: always()
105+
steps:
106+
- name: fail
107+
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}
108+
run: |
109+
echo "### Some tests failed." >> $GITHUB_STEP_SUMMARY
110+
exit 1
111+
- name: pass
112+
run: echo "### All tests passed." >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)