Skip to content

Commit 22f2070

Browse files
committed
Add a result job depending on all other jobs
* To have a single target for "required checks" in GitHub for auto-merge. * Same shape as the result jobs in ruby/ruby workflows.
1 parent 7b48e00 commit 22f2070

1 file changed

Lines changed: 35 additions & 1 deletion

File tree

‎.github/workflows/test.yml‎

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test this action
1+
name: CI
22
on:
33
pull_request:
44
push:
@@ -409,3 +409,37 @@ jobs:
409409
- run: yarn run package
410410
- name: Check generated files are up to date
411411
run: git diff --exit-code
412+
413+
result:
414+
if: ${{ always() }}
415+
name: Result
416+
runs-on: ubuntu-latest
417+
needs:
418+
- test-matrix
419+
- test
420+
- testDotRubyVersion
421+
- testToolVersions
422+
- testMise
423+
- testNoGemfile
424+
- testNoGemfileWithBundlerCache
425+
- testLatestRubygemsVersion
426+
- testFixedRubygemsVersionUpgrades
427+
- testFixedRubygemsVersionNoop
428+
- testFixedRubygemsBetaVersionUpgrades
429+
- testFixedRubygemsBetaVersionNoop
430+
- testUseBundlerFromRubyGemsUpdate
431+
- testFixedBundlerVersionForOldRuby
432+
- testMajorBundlerVersion
433+
- testMinorBundlerVersion
434+
- testExactBundlerVersion
435+
- testOlderBundlerVersion
436+
- testBundlerPre
437+
- testBundlerDev
438+
- testDependencyOnBundler1
439+
- testGemfileMatrix
440+
- testWindowsToolchain
441+
- validate-windows-versions
442+
- check-dist-index
443+
steps:
444+
- run: exit 1
445+
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}

0 commit comments

Comments
 (0)