diff --git a/README.md b/README.md index c4d6301..d4ed6ae 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Minimalist cli tool for building many similar components in a monorepo. Calculates a hash of the file content of a component and checks for existing artifacts with that hash to determine whether to build the component. ### Example configurations -Example configurations can be found in [examples/](./examples), [.knega.root.yml](./examples/.knega.root.yml) should be at project root and [.component.yml](./examples/.component.yml) should exist for every component. Check [examples/full](./examples/full/) for an example with sample components. +Example configurations can be found in [examples/](./examples), [.knega.root.yml](./examples/.knega.root.yml) should be at project root and [.component.yml](./examples/.component.yml) should exist for every component. Check [examples/full](./examples/full/) for an example with sample components (used by tests). ## Usage `knega changed/all ` where action is a set of commands defined in configuration. It will execute those commands for all or changed components with that action defined. diff --git a/test/build.bats b/test/build.bats index c878c6c..ba5a68a 100644 --- a/test/build.bats +++ b/test/build.bats @@ -17,3 +17,8 @@ [[ "$output" = *"example-1"*"Artifacts found"* ]] [[ "$output" = *"example-2"*"Artifacts found"* ]] } + +@test "knega all build should build everything even if artifacts already exist" { + run $KNEGA all build + [[ "$output" = *"Created 2 jobs"* ]] +}