Skip to content

Commit 9c62afd

Browse files
committed
test message
1 parent 019a5ef commit 9c62afd

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/performance.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,33 @@ jobs:
157157
console.error(\`❌ Memory leak detected! Heap increase \${(memoryIncrease.heapUsed / 1024 / 1024).toFixed(2)}MB exceeds limit of \${MAX_HEAP_INCREASE / 1024 / 1024}MB\`);
158158
process.exit(1);
159159
}
160+
161+
if (memoryIncrease.external > MAX_EXTERNAL_INCREASE) {
162+
console.error(\`❌ External memory increase \${(memoryIncrease.external / 1024 / 1024).toFixed(2)}MB exceeds limit of \${MAX_EXTERNAL_INCREASE / 1024 / 1024}MB\`);
163+
process.exit(1);
164+
}
165+
166+
console.log('✅ Memory usage within acceptable limits');
167+
"
168+
169+
- name: Bundle size check with assertions
170+
run: |
171+
echo "Checking bundle size..."
172+
BUNDLE_SIZE=$(du -b dist/index.js | cut -f1)
173+
echo "Bundle size: $BUNDLE_SIZE bytes"
174+
175+
# Bundle size assertions
176+
MAX_BUNDLE_SIZE=50000 # 50KB
177+
178+
if [ "$BUNDLE_SIZE" -gt "$MAX_BUNDLE_SIZE" ]; then
179+
echo "❌ Bundle size $BUNDLE_SIZE bytes exceeds limit of $MAX_BUNDLE_SIZE bytes"
180+
exit 1
181+
fi
182+
183+
echo "✅ Bundle size within acceptable limits"
184+
185+
echo "Number of lines in dist:"
186+
find dist -name "*.js" -exec wc -l {} \;
160187
161188
- name: Performance regression check
162189
run: |

0 commit comments

Comments
 (0)