Dependencies

Tool Dependencies

If you want tool A to be installed before tool B, you can let tool B depend on tool A.

The syntax for dependency is:

  1. dependsOn: [ "ToolName.ToolInstanceID" ]

Since dependsOn is a list, a tool can have multiple dependencies:

  1. dependsOn: [ "ToolName1.ToolInstanceID1", "ToolName2.ToolInstanceID2", "..." ]

In the following tool file example, tool “github-repo-scaffolding-golang” (with instance id “default”) will be installed before tool “githubactions-golang” (with instance id “default”):

  1. tools:
  2. - name: github-repo-scaffolding-golang
  3. instanceID: default
  4. options:
  5. org: devstream-io
  6. repo: dtm-e2e-go
  7. branch: main
  8. image_repo: dtme2etest/dtm-e2e-go
  9. - name: githubactions-golang
  10. instanceID: default
  11. dependsOn: ["github-repo-scaffolding-golang.default"]
  12. options:
  13. org: ${{github-repo-scaffolding-golang.default.outputs.org}}
  14. repo: ${{github-repo-scaffolding-golang.default.outputs.repo}}
  15. language:
  16. name: go
  17. version: "1.17"
  18. branch: main
  19. build:
  20. enable: True
  21. test:
  22. enable: True
  23. coverage:
  24. enable: True