mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-21 02:53:56 +01:00
Fix the tests-done Github Actions job (#10444)
This commit is contained in:
parent
8ae0bdca75
commit
f1347bcfdc
2 changed files with 19 additions and 1 deletions
19
.github/workflows/tests.yml
vendored
19
.github/workflows/tests.yml
vendored
|
@ -347,7 +347,12 @@ jobs:
|
||||||
|
|
||||||
# a job which marks all the other jobs as complete, thus allowing PRs to be merged.
|
# a job which marks all the other jobs as complete, thus allowing PRs to be merged.
|
||||||
tests-done:
|
tests-done:
|
||||||
|
if: ${{ always() }}
|
||||||
needs:
|
needs:
|
||||||
|
- lint
|
||||||
|
- lint-crlf
|
||||||
|
- lint-newsfile
|
||||||
|
- lint-sdist
|
||||||
- trial
|
- trial
|
||||||
- trial-olddeps
|
- trial-olddeps
|
||||||
- sytest
|
- sytest
|
||||||
|
@ -355,4 +360,16 @@ jobs:
|
||||||
- complement
|
- complement
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: "true"
|
- name: Set build result
|
||||||
|
env:
|
||||||
|
NEEDS_CONTEXT: ${{ toJSON(needs) }}
|
||||||
|
# the `jq` incantation dumps out a series of "<job> <result>" lines
|
||||||
|
run: |
|
||||||
|
set -o pipefail
|
||||||
|
jq -r 'to_entries[] | [.key,.value.result] | join(" ")' \
|
||||||
|
<<< $NEEDS_CONTEXT |
|
||||||
|
while read job result; do
|
||||||
|
if [ "$result" != "success" ]; then
|
||||||
|
echo "::set-failed ::Job $job returned $result"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
1
changelog.d/10444.misc
Normal file
1
changelog.d/10444.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Update the `tests-done` Github Actions status.
|
Loading…
Reference in a new issue