mirror of
https://github.com/DeterminateSystems/nix-installer-action.git
synced 2024-12-23 05:22:21 +01:00
tests: make megajob block on failure
GitHub Actions considers a "skipped" job successful for the purposes of required jobs for branch protections. We take advantage of this by failing if any dependent actions failed, or "skip" if they all succeeded.
This commit is contained in:
parent
c6857b9a9d
commit
676d200580
1 changed files with 6 additions and 1 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
@ -14,8 +14,13 @@ jobs:
|
||||||
- install-nix-linux
|
- install-nix-linux
|
||||||
- install-nix-macos
|
- install-nix-macos
|
||||||
- install-with-non-default-source-inputs
|
- install-with-non-default-source-inputs
|
||||||
|
# NOTE(cole-h): GitHub treats "skipped" as "OK" for the purposes of required checks on branch
|
||||||
|
# protection, so we take advantage of this fact and fail if any of the dependent actions failed,
|
||||||
|
# or "skip" (which is a success for GHA's purposes) if none of them did.
|
||||||
|
if: failure()
|
||||||
steps:
|
steps:
|
||||||
- run: true
|
- name: Dependent checks failed
|
||||||
|
run: exit 1
|
||||||
|
|
||||||
check-dist-up-to-date:
|
check-dist-up-to-date:
|
||||||
name: Check the dist/ folder is up to date
|
name: Check the dist/ folder is up to date
|
||||||
|
|
Loading…
Reference in a new issue