Skip to content

Allow steps to be required to be run prior to subsequent steps #40

Description

@pete0emerson
$ runbooks --version
runbooks version beta-v0.1.6 (Commit: 8fd8a58)

When I run the my-first-runbook example, I see that there is a "skip" button on a check. That appears to be advisory; in other words, there is nothing preventing me from running subsequent steps on the runbook. It changes the color of the box gray (and marked as "skipped") instead of red or green.

I'd like a method for the checks to be enforced prior to moving on to next steps.

In other words, any <Check>, <Command> or <Template> should have an option to be required to be run and optionally exit successfully prior to proceeding to the next step.

This should be optional, and in my opinion, NOT the default. Sometimes I'd want to be able to be in advisory mode. Maybe something like this:

<Check 
  id="check-git-version" 
  path="checks/check-git-version.sh" 
  title="Check Git Version" 
  required=(no|yes|success)
  description="Verify that you're running a specific version of git" 
  failMessage="Hmm, your git version seems off. Try again." 
  successMessage="Success! Well now, look who's got the expected git version.">
...
</Check>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions