We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0940d02 commit d6d2a5dCopy full SHA for d6d2a5d
.github/workflows/unit-test.yml
@@ -47,7 +47,10 @@ jobs:
47
48
- name: Run Unit Tests for Affected Plugins
49
run: |
50
- for plugin in ${{ steps.changes.outputs.affected_plugins }}; do
51
- echo "Running tests for $plugin..."
52
- npm run test:unit --prefix ./packages/$plugin
53
- done
+ # Only run tests for contentstack-audit if it's affected
+ if [[ "$${{ steps.changes.outputs.affected_plugins }}" == *"contentstack-audit"* ]]; then
+ echo "Running tests for contentstack-audit..."
+ npm run test:unit --prefix ./packages/contentstack-audit
54
+ else
55
+ echo "contentstack-audit has not changed. Skipping tests."
56
+ fi
0 commit comments