Skip to content

Commit e2e9f77

Browse files
committed
unit test case workflow fix
1 parent d6d2a5d commit e2e9f77

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/unit-test.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)