Merge pull request #163 from subleemino/prof_screen #122
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: Monorepo CI | |
| on: | |
| pull_request: | |
| branches: [main, develop] | |
| push: | |
| branches: [main, develop] | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| NODE_VERSION: '20' | |
| API_PORT: '4000' | |
| MONGO_URI: 'mongodb://localhost:27017/qyou' | |
| JWT_ACCESS_SECRET: '12345678901234567890123456789012' | |
| JWT_REFRESH_SECRET: 'abcdefghijklmnopqrstuvwxyz123456' | |
| STELLAR_NETWORK: 'TESTNET' | |
| STELLAR_SECRET_KEY: 'SAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' | |
| NEXT_PUBLIC_API_URL: 'https://api.example.com' | |
| ADMIN_JWT_SECRET: 'abcdefghijklmnopqrstuvwxyz123456' | |
| EXPO_PUBLIC_API_URL: 'https://api.example.com' | |
| jobs: | |
| validate: | |
| name: Monorepo Validation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm install --workspaces --include-workspace-root --no-audit --no-fund | |
| - name: Lint | |
| run: npm run lint | |
| - name: Unit tests | |
| run: npm run test | |
| - name: Type check | |
| run: npm run typecheck |