mirror of
https://github.com/go-task/task.git
synced 2026-06-29 07:34:18 +00:00
add test
This commit is contained in:
19
testdata/precondition/local/Taskfile.yml
vendored
Normal file
19
testdata/precondition/local/Taskfile.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
version: '3'
|
||||
|
||||
tasks:
|
||||
foo:
|
||||
preconditions:
|
||||
- test -f foo.txt
|
||||
|
||||
impossible:
|
||||
preconditions:
|
||||
- sh: "[ 1 = 0 ]"
|
||||
msg: "1 != 0 obviously!"
|
||||
|
||||
depends_on_impossible:
|
||||
deps:
|
||||
- impossible
|
||||
|
||||
executes_failing_task_as_cmd:
|
||||
cmds:
|
||||
- task: impossible
|
||||
0
testdata/precondition/local/foo.txt
vendored
Normal file
0
testdata/precondition/local/foo.txt
vendored
Normal file
Reference in New Issue
Block a user