tests: enable shellcheck for universe tests

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2021-06-09 15:46:55 -07:00
parent 5d2392b38c
commit 3339a351ed
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ cuelint: cuefmt
.PHONY: shellcheck .PHONY: shellcheck
shellcheck: shellcheck:
shellcheck ./tests/*.bats ./tests/*.bash shellcheck ./tests/*.bats ./tests/*.bash
shellcheck ./universe/*.bats ./universe/*.bash
.PHONY: lint .PHONY: lint
lint: shellcheck cuelint golint check-buildkit-version docslint lint: shellcheck cuelint golint check-buildkit-version docslint

View File

@ -3,7 +3,7 @@ common_setup() {
load 'node_modules/bats-assert/load' load 'node_modules/bats-assert/load'
# Dagger Binary # Dagger Binary
DAGGER="${DAGGER_BINARY:-$(which dagger)}" DAGGER="${DAGGER_BINARY:-$(command -v dagger)}"
export DAGGER export DAGGER
# Set the workspace to the universe directory (so tests can run from anywhere) # Set the workspace to the universe directory (so tests can run from anywhere)