summaryrefslogtreecommitdiff
path: root/test/asset
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-11-08 19:50:57 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2025-11-08 21:43:28 +0100
commitd8354b8f1b2bbb6d911070ca9822c7e4fbd88bca (patch)
tree202c03cc700e59106bc62f5d07068dd532a55c5e /test/asset
parenta8aeb1866b221b850a8ece13e1a9b9acca1dc1f9 (diff)
Options to select rerun behavior
Changelog: Added `--rerun-*` command-line options to configure which jobs should be rerun
Diffstat (limited to 'test/asset')
-rw-r--r--test/asset/run/rerun.yaml45
1 files changed, 45 insertions, 0 deletions
diff --git a/test/asset/run/rerun.yaml b/test/asset/run/rerun.yaml
new file mode 100644
index 0000000..dc18b41
--- /dev/null
+++ b/test/asset/run/rerun.yaml
@@ -0,0 +1,45 @@
+job first:
+ shell:
+ - touch x
+
+ artifact out:
+ path: x
+
+
+job second:
+ uses:
+ - first.out
+
+ shell:
+ - mv x y
+
+ artifact out:
+ path: y
+
+
+job first_fail:
+ shell:
+ - "false"
+
+ artifact out:
+ path: x
+
+
+job second_skip:
+ uses:
+ - first_fail.out
+
+ shell:
+ - "true"
+
+ artifact out:
+ path: y
+
+
+job third:
+ uses:
+ - second.out
+ - second_skip.out
+
+ shell:
+ - "true"