Skip to content

Merge pull request #574 from collinsezedike/feat/issue-356-app-auto-u… #499

Merge pull request #574 from collinsezedike/feat/issue-356-app-auto-u…

Merge pull request #574 from collinsezedike/feat/issue-356-app-auto-u… #499

Workflow file for this run

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