Skip to content

Commit

Permalink
Add resources_test field in the package config that can be picked u… (
Browse files Browse the repository at this point in the history
#709)

* Add `resources_test` field in the package config that can be picked up by the CI

* fill in PR number
  • Loading branch information
Grifs authored May 29, 2024
1 parent 28b2e89 commit 11fa402
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ TODO add summary
The cache is stored in the `~/.viash/repositories` directory using sparse-checkout to only fetch the necessary files.
During a build, the cache is checked for the repository and if it is found and still up-to-date, the repository is not cloned again and instead the cache is copied to a temporary folder where the files are checked out from the sparse-checkout.

* `resources_test`: Add a `resources_test` field to the `_viash.yaml` to specify resources that are needed during testing (PR #709).
Currently it is up to the user or CI to make sure these resources are available in the `resources_test` directory during testing.

## BUG FIXES

`dependencies`: Fix resolving of dependencies of dependencies (PR #701). The stricter build config was now lacking the necessary information to resolve dependencies of dependencies.
Expand Down
10 changes: 10 additions & 0 deletions src/main/scala/io/viash/packageConfig/PackageConfig.scala
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,16 @@ case class PackageConfig(
@default("Empty")
@since("Viash 0.9.0")
links: Links = Links(),

@description("The resources that are required for testing.")
@example(
"""resources_test:
| - "https://raw.githubusercontent.com/viash-io/viash/main/CHANGELOG.md"
| - "https://www.scala-lang.org/feed/blog.xml"
|""".stripMargin, "yaml")
@default("Empty")
@since("Viash 0.9.0")
resources_test: OneOrMore[String] = Nil,
)

object PackageConfig {
Expand Down

0 comments on commit 11fa402

Please sign in to comment.