Skip to content

Commit

Permalink
refactor: 테스트 패키지 분기 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
brgndyy committed Aug 31, 2024
1 parent 2fe24c2 commit 81d28ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
- name: Get changed workspaces
id: changesets
run: |
# Fetch the list of changed files and extract unique package names
CHANGED_WORKSPACES=$(git diff --name-only origin/main...HEAD -- packages/ | grep 'packages/' | cut -d '/' -f 2 | sort | uniq | tr '\n' ',')
echo "Changed workspaces: $CHANGED_WORKSPACES"
echo "CHANGED_WORKSPACES=$CHANGED_WORKSPACES" >> $GITHUB_ENV
Expand All @@ -49,6 +50,6 @@ jobs:
for package in "${packages[@]}"; do
if [ -n "$package" ]; then
echo "Running tests for package: $package"
pnpm -r --filter "./packages/$package" test
pnpm -r --filter "$package" test
fi
done

0 comments on commit 81d28ce

Please sign in to comment.