Skip to content

Commit ec7b117

Browse files
authored
chore: add gen and test-go-race to required check (#7952)
1 parent 1ec463d commit ec7b117

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -565,12 +565,25 @@ jobs:
565565

566566
required:
567567
runs-on: ubuntu-latest
568-
needs: [test-go, test-go-pg, test-js]
569-
# allow this job to run even if the previous jobs are skipped
570-
if: |
571-
always() &&
572-
!contains(needs.*.result, 'failure') &&
573-
!contains(needs.*.result, 'cancelled')
568+
needs: [gen, test-go, test-go-pg, test-go-race, test-js]
569+
# Allow this job to run even if the needed jobs fail, are skipped or
570+
# cancelled.
571+
if: always()
574572
steps:
575573
- name: Ensure required checks
576-
run: echo "Required checks have passed"
574+
run: |
575+
echo "Checking required checks"
576+
echo "- gen: ${{ needs.gen.result }}"
577+
echo "- test-go: ${{ needs.test-go.result }}"
578+
echo "- test-go-pg: ${{ needs.test-go-pg.result }}"
579+
echo "- test-go-race: ${{ needs.test-go-race.result }}"
580+
echo "- test-js: ${{ needs.test-js.result }}"
581+
echo
582+
583+
# We allow skipped jobs to pass, but not failed or cancelled jobs.
584+
if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" || "${{ contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
585+
echo "One of the required checks has failed or has been cancelled"
586+
exit 1
587+
fi
588+
589+
echo "Required checks have passed"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy