Skip to content

Commit

Permalink
Tighten threshold for circular deps
Browse files Browse the repository at this point in the history
  • Loading branch information
samayer12 committed Feb 4, 2025
1 parent cc128da commit 773d221
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ jobs:
run: |
npx madge --circular --ts-config tsconfig.json --extensions ts,js src/ > tmp.log || true # Force exit 0 for post-processing
tail -n +4 tmp.log > circular-deps.log
if [ $(wc -l < circular-deps.log) -gt 9 ]; then
echo "circular-deps.log has more than 9 circular dependencies."
if [ $(wc -l < circular-deps.log) -gt 4 ]; then
echo "circular-deps.log has more than 4 circular dependencies."
wc -l circular-deps.log
exit 1
else
echo "circular-deps.log has 9 or fewer circular dependencies."
echo "circular-deps.log has 4 or fewer circular dependencies."
exit 0
fi

0 comments on commit 773d221

Please sign in to comment.