-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add backwards compatibility for old-style run commands (#4195)
* fix: add backwards compatibility for old-style run commands * chore: run command error message improvement from code review Co-authored-by: stefreak <[email protected]> * test: ensure warnings for legacy-style run command invocations * chore: code review suggestion Co-authored-by: Steffen Neubauer <[email protected]> --------- Co-authored-by: stefreak <[email protected]> Co-authored-by: Steffen Neubauer <[email protected]>
- Loading branch information
1 parent
0d3fadc
commit 8f5218d
Showing
5 changed files
with
184 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
core/test/data/test-projects/old-style-run-invocations/garden.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# TODO: remove this entire test project directory in 0.14 | ||
apiVersion: garden.io/v0 | ||
kind: Project | ||
name: test-project-a | ||
environments: | ||
- name: local | ||
providers: | ||
- name: test-plugin | ||
variables: | ||
some: variable | ||
outputs: | ||
- name: taskName | ||
value: task-a |
27 changes: 27 additions & 0 deletions
27
core/test/data/test-projects/old-style-run-invocations/module-a/garden.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
kind: Module | ||
name: module-a | ||
type: test | ||
variables: | ||
msg: OK | ||
services: | ||
- name: service-a | ||
build: | ||
command: [echo, A] | ||
tests: | ||
- name: unit | ||
command: [echo, "${var.msg}"] | ||
- name: integration | ||
command: [echo, "${var.msg}"] | ||
dependencies: | ||
- service-a | ||
tasks: | ||
- name: task-a | ||
command: [echo, "${var.msg}"] | ||
- name: task-a2 | ||
command: [echo, "${environment.name}-${var.msg}"] | ||
|
||
--- | ||
kind: Workflow | ||
name: workflow-a | ||
steps: | ||
- script: echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters