Skip to content

GitHub Workflows: Verify that needs references an existing job #664

@Zeitsperre

Description

@Zeitsperre

Hey there, thanks for the work spent on this tool; It's saved me from so much digital embarrassment.

I'm wondering if it would be possible to add a check to the GitHub Workflow schema to ensure that the job: needs: entry references an existing job and raises an error when it can't find it, e.g.:

jobs:
  test:
    name: Test
    needs: some-job-that-doesnt-exist-in-file

This check might become complicated in the case of two jobs that are mistakenly configured to circularly depend upon each other, but that would be a particularly strange edge case; I'm not sure how often that happens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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