fix(mobile): optimize quiz analytics and socket reconnect backoff (#593, #601) #512
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| env: | |
| EXPO_PUBLIC_API_BASE_URL: https://api.teachlink.com | |
| EXPO_PUBLIC_SOCKET_URL: wss://api.teachlink.com | |
| EXPO_PUBLIC_APP_ENV: production | |
| EXPO_PUBLIC_ENABLE_PUSH_NOTIFICATIONS: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install subsetting dependencies | |
| run: pip install fonttools | |
| - name: Run Font Subsetting | |
| run: python scripts/subset-fonts.py | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - run: npm install | |
| - name: Lint | |
| run: npm run lint -- --max-warnings=500 | |
| - name: Format check | |
| run: npm run format:check | |
| - name: Typecheck | |
| run: npx tsc --noEmit | |
| - name: Test | |
| run: npm test -- --passWithNoTests | |
| - name: Validate OpenAPI Spec | |
| run: npm run validate:openapi | |
| # ============================== | |
| # 🚀 PERFORMANCE BUDGET CHECKS | |
| # ============================== | |
| - name: Build App (required for bundle check) | |
| run: npx expo export --platform web | |
| - name: Check Bundle Size | |
| run: node scripts/checkBundleSize.js | |
| - name: Check API Performance | |
| run: node scripts/checkApiPerf.js |