fix(mobile): optimize quiz analytics and socket reconnect backoff (#593, #601) #490
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: Dependency Audit | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| schedule: | |
| - cron: '0 6 * * 1' # Every Monday at 06:00 UTC | |
| jobs: | |
| audit: | |
| name: npm audit + depcheck | |
| 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: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Check for high/critical vulnerabilities | |
| run: npm run audit | |
| - name: Check for unused dependencies | |
| run: npm run depcheck |