-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.44 KB
/
Copy pathnightly.yml
File metadata and controls
47 lines (39 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Nightly Health Check
on:
schedule:
- cron: '0 2 * * *' # Every night at 2am UTC
workflow_dispatch: # Allow manual trigger
jobs:
health-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Verify build
run: npm run build
- name: Check bundle size
run: |
echo "## 📦 Bundle Size Report" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "| File | Size |" >> $GITHUB_STEP_SUMMARY
echo "|------|------|" >> $GITHUB_STEP_SUMMARY
for file in dist/assets/*.js; do
size=$(ls -lh "$file" | awk '{print $5}')
name=$(basename "$file")
echo "| $name | $size |" >> $GITHUB_STEP_SUMMARY
done
- name: Repository stats
run: |
echo "" >> $GITHUB_STEP_SUMMARY
echo "## 📊 Repository Stats" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "- **Total files:** $(find src -type f | wc -l)" >> $GITHUB_STEP_SUMMARY
echo "- **Components:** $(find src/components -name '*.jsx' | wc -l)" >> $GITHUB_STEP_SUMMARY
echo "- **Last commit:** $(git log -1 --format='%h - %s')" >> $GITHUB_STEP_SUMMARY