mirror of
https://github.com/go-task/task.git
synced 2025-11-23 22:24:45 +02:00
add test
This commit is contained in:
9
testdata/precondition/global/Taskfile.yml
vendored
Normal file
9
testdata/precondition/global/Taskfile.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
version: '3'
|
||||
|
||||
preconditions:
|
||||
- sh: "[ 1 = 0 ]"
|
||||
msg: "1 != 0 obviously!"
|
||||
|
||||
tasks:
|
||||
impossible:
|
||||
cmd: echo "won't run"
|
||||
12
testdata/precondition/global/with_local/Taskfile.yml
vendored
Normal file
12
testdata/precondition/global/with_local/Taskfile.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
version: '3'
|
||||
|
||||
preconditions:
|
||||
- test -f foo.txt
|
||||
|
||||
tasks:
|
||||
foo:
|
||||
|
||||
impossible:
|
||||
preconditions:
|
||||
- sh: "[ 1 = 0 ]"
|
||||
msg: "1 != 0 obviously!"
|
||||
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