From 67c2ec2cc6d95604723e76dadf52efc880a9f79c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominique=20J=C3=A4ggi?= Date: Fri, 1 Dec 2023 08:32:42 +0100 Subject: [PATCH] fix: only run IT tests if needed --- .circleci/config.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index acf55056..f8a73a67 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -35,8 +35,14 @@ jobs: name: Running tests and getting code coverage command: cat /tmp/tests-to-run | xargs -I % npm run test -w % - run: - name: Running data access integration tests - command: npm run test:it -w packages/spacecat-shared-data-access + name: Running integration tests + command: | + if grep -q "packages/spacecat-shared-data-access" /tmp/tests-to-run; then + echo "Running integration tests for spacecat-shared-data-access" + npm run test:it -w packages/spacecat-shared-data-access + else + echo "Skipping integration tests" + fi - codecov/upload - run: name: Copy test results