mirror of
https://github.com/go-task/task.git
synced 2025-11-29 22:48:03 +02:00
feat: variable inheritance tests (#2038)
This commit is contained in:
21
testdata/var_inheritance/v3/entrypoint-task-vars/Taskfile.yml
vendored
Normal file
21
testdata/var_inheritance/v3/entrypoint-task-vars/Taskfile.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
version: '3'
|
||||
|
||||
silent: true
|
||||
dotenv:
|
||||
- 'global.env'
|
||||
vars:
|
||||
VAR: entrypoint-global-vars
|
||||
env:
|
||||
ENV: entrypoint-global-vars
|
||||
|
||||
tasks:
|
||||
default:
|
||||
dotenv:
|
||||
- 'task.env'
|
||||
vars:
|
||||
VAR: entrypoint-task-vars
|
||||
env:
|
||||
ENV: entrypoint-task-vars
|
||||
cmds:
|
||||
- 'echo "{{.VAR}}"'
|
||||
- 'echo "$ENV"'
|
||||
2
testdata/var_inheritance/v3/entrypoint-task-vars/global.env
vendored
Normal file
2
testdata/var_inheritance/v3/entrypoint-task-vars/global.env
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
VAR=entrypoint-global-dotenv
|
||||
ENV=entrypoint-global-dotenv
|
||||
2
testdata/var_inheritance/v3/entrypoint-task-vars/task.env
vendored
Normal file
2
testdata/var_inheritance/v3/entrypoint-task-vars/task.env
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
VAR=entrypoint-task-dotenv
|
||||
ENV=entrypoint-task-dotenv
|
||||
Reference in New Issue
Block a user