diff --git a/.ci/docker/Makefile b/.ci/docker/Makefile index ffb8a370c4c..d9ed9f05bed 100644 --- a/.ci/docker/Makefile +++ b/.ci/docker/Makefile @@ -42,7 +42,9 @@ convert-tests-results: ## convert TAP test results to JUnit sh -c 'npm install tap-xunit -g && cat target/results.tap | tap-xunit --package="co.elastic.pipeline.$${APP}" > target/junit-$${APP}-results.xml' test-golang-mage: prepare-test ## Run the tests for the specific app - cp ../../go.mod golang-mage + cp -f ../../go.* golang-mage + mkdir -p golang-mage/approvaltest && cp -f ../../approvaltest/go.* golang-mage/approvaltest + mkdir -p golang-mage/systemtest && cp -f ../../systemtest/go.* golang-mage/systemtest @DOCKERFILE=golang-mage bats-core/bin/bats --tap tests | tee target/results.tap @$(MAKE) -s convert-tests-results diff --git a/.gitignore b/.gitignore index a19f2045310..13d56edf4cf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ /.ci/docker/bats-core /.ci/docker/tests/test_helper /.ci/docker/target +/.ci/docker/golang-mage/go.* +/.ci/docker/golang-mage/approvaltest/ +/.ci/docker/golang-mage/systemtest/ **/*.idea /build /data