summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/job-status-check
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/runner/testdata/job-status-check')
-rw-r--r--pkg/runner/testdata/job-status-check/push.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkg/runner/testdata/job-status-check/push.yml b/pkg/runner/testdata/job-status-check/push.yml
new file mode 100644
index 0000000..4ae6af8
--- /dev/null
+++ b/pkg/runner/testdata/job-status-check/push.yml
@@ -0,0 +1,28 @@
+on: push
+jobs:
+ fail:
+ runs-on: ubuntu-latest
+ steps:
+ - run: exit 1
+ suc1:
+ if: success() || failure()
+ needs:
+ - fail
+ runs-on: ubuntu-latest
+ steps:
+ - run: exit 0
+ suc2:
+ if: success() || failure()
+ needs:
+ - fail
+ runs-on: ubuntu-latest
+ steps:
+ - run: exit 0
+ next:
+ needs:
+ - suc1
+ - suc2
+ runs-on: ubuntu-latest
+ steps:
+ - run: echo should never reach here
+ - run: exit 1