Change planner functions to return errors This enables createStages to return `unable to build dependency graph` Fix PlanEvent to properly report errors relating to events/workflows
This commit is contained in:
16
pkg/runner/testdata/issue-1595/missing.yml
vendored
Normal file
16
pkg/runner/testdata/issue-1595/missing.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
name: missing
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
second:
|
||||
runs-on: ubuntu-latest
|
||||
needs: first
|
||||
steps:
|
||||
- run: echo How did you get here?
|
||||
shell: bash
|
||||
|
||||
standalone:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo Hello world
|
||||
shell: bash
|
8
pkg/runner/testdata/issue-1595/no-event.yml
vendored
Normal file
8
pkg/runner/testdata/issue-1595/no-event.yml
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
name: no event
|
||||
|
||||
jobs:
|
||||
stuck:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo How did you get here?
|
||||
shell: bash
|
10
pkg/runner/testdata/issue-1595/no-first.yml
vendored
Normal file
10
pkg/runner/testdata/issue-1595/no-first.yml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
name: no first
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
second:
|
||||
runs-on: ubuntu-latest
|
||||
needs: first
|
||||
steps:
|
||||
- run: echo How did you get here?
|
||||
shell: bash
|
Reference in New Issue
Block a user