File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,12 @@ jobs:
4747
4848 - name : Run Unit Tests for Affected Plugins
4949 run : |
50- # Only run tests for contentstack-audit if it's affected
51- if [[ "$${{ steps.changes.outputs.affected_plugins }}" == *"contentstack-audit"* ]]; then
52- echo "Running tests for contentstack-audit..."
53- npm run test:unit --prefix ./packages/contentstack-audit
54- else
55- echo "contentstack-audit has not changed. Skipping tests."
56- fi
50+ for plugin in ${{ steps.changes.outputs.affected_plugins }}; do
51+ echo "Checking if tests should run for $plugin..."
52+ if [[ "$plugin" == "contentstack-audit" ]]; then
53+ echo "Running tests for contentstack-audit..."
54+ npm run test:unit --prefix ./packages/contentstack-audit
55+ else
56+ echo "contentstack-audit has not changed. Skipping tests."
57+ fi
58+ done
You can’t perform that action at this time.
0 commit comments