Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,36 @@ jobs:
name: bundle-size-report-${{ github.sha }}
path: bundle-size-report.json

# ─────────────────────────────────────────────────────────
# Performance Monitoring
# ─────────────────────────────────────────────────────────
performance:
name: Performance Budget 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: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: Cache node modules
uses: actions/cache@v4
id: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('package-lock.json') }}

- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci --legacy-peer-deps

- name: Run performance benchmark
run: npm run performance:benchmark

# ─────────────────────────────────────────────────────────
# Merge Protection (only on PRs)
# ─────────────────────────────────────────────────────────
Expand All @@ -413,6 +443,7 @@ jobs:
rust-build,
load-test,
bundle-size,
performance,
]
steps:
- name: All checks passed
Expand All @@ -439,6 +470,7 @@ jobs:
rust-build,
load-test,
bundle-size,
performance,
]
steps:
- name: Check for failures
Expand All @@ -457,7 +489,8 @@ jobs:
[ "${{ needs.rust-tests.result }}" != "success" ] || \
[ "${{ needs.rust-build.result }}" != "success" ] || \
[ "${{ needs.load-test.result }}" != "success" ] || \
[ "${{ needs.bundle-size.result }}" != "success" ]; then
[ "${{ needs.bundle-size.result }}" != "success" ] || \
[ "${{ needs.performance.result }}" != "success" ]; then
echo "One or more CI checks failed"
exit 1
fi
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"test": "jest --passWithNoTests",
"test:coverage": "jest --coverage",
"performance:ci": "node scripts/check-performance-budget.js",
"performance:benchmark": "node scripts/check-performance-budget.js",
"mutation:test": "npx --yes @stryker-mutator/core@9.0.0 run",
"build": "expo export",
"build:android": "expo run:android --variant release",
Expand Down
Loading