Files
esphome/tests/unit_tests/fixtures/substitutions/06-remote_packages.input.yaml

64 lines
1.5 KiB
YAML

substitutions:
x: 10
y: 20
z: 30
my_repo: default_repo
my_file: default_file
my_ref: main
# The following key is only used by the test framework
# to simulate command line substitutions
command_line_substitutions:
my_repo: repo1
my_file: file1
packages:
package1:
url: https://github.com/esphome/repo1
ref: main
files:
- path: file1.yaml
vars:
package_name: package1
x: 3
y: 4
package2: !include # a package that just includes the given remote package
file: remote_package_proxy.yaml
vars:
url: https://github.com/esphome/repo1
ref: main
files:
- path: file1.yaml
vars:
package_name: package2
x: 6
y: 7
z: 8
package3: github://esphome/repo1/file1.yaml@main # a package that uses the shorthand syntax
package4: # include repo2, which itself includes repo1
url: https://github.com/esphome/repo2
files:
- path: file2.yaml
vars:
package_name: package4
a: 9
b: 10
c: 11
ref: main
package5: !include
file: remote_package_shorthand.yaml
vars:
repo: repo1
file: file1.yaml
ref: main
package6:
url: https://github.com/esphome/${my_repo}
ref: ${my_ref}
files:
- path: ${my_file + ".yaml"}
vars:
package_name: package6
x: 12
y: 13
package7: github://esphome/${my_repo}/${my_file + ".yaml"}@${my_ref}