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