Skip to content

Commit

Permalink
fix: only run IT tests if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
solaris007 committed Dec 1, 2023
1 parent 4f3aae6 commit 67c2ec2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67c2ec2

Please sign in to comment.