fix(frontend): show private profiles to friends on public profile page #472
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: Quality & Testing CI | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| quality: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache Turbo | |
| uses: actions/cache@v5 | |
| with: | |
| path: .turbo | |
| key: ${{ runner.os }}-turbo-${{ github.job }}-${{ github.sha }} | |
| restore-keys: | | |
| ${{ runner.os }}-turbo-${{ github.job }}- | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: 'pnpm' | |
| - run: pnpm install --frozen-lockfile | |
| - name: Run Linting | |
| run: make lint | |
| - name: Run Typecheck | |
| run: make typecheck | |
| # --- STAGE 2: UNIT & INTEGRATION (PARALLEL) --- | |
| backend-tests: | |
| runs-on: ubuntu-latest | |
| needs: quality | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| name: Check out code | |
| - name: Cache Turbo | |
| uses: actions/cache@v5 | |
| with: | |
| path: .turbo | |
| key: ${{ runner.os }}-turbo-${{ github.job }}-${{ github.sha }} | |
| restore-keys: | | |
| ${{ runner.os }}-turbo-${{ github.job }}- | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: 'pnpm' | |
| - run: pnpm install --frozen-lockfile | |
| - name: Run Backend unit tests | |
| run: make test-be-unit | |
| frontend-tests: | |
| runs-on: ubuntu-latest | |
| needs: quality | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| name: Check out code | |
| - name: Cache Turbo | |
| uses: actions/cache@v5 | |
| with: | |
| path: .turbo | |
| key: ${{ runner.os }}-turbo-${{ github.job }}-${{ github.sha }} | |
| restore-keys: | | |
| ${{ runner.os }}-turbo-${{ github.job }}- | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: 'pnpm' | |
| - run: pnpm install --frozen-lockfile | |
| - name: Run Frontend integration tests | |
| run: make test-fe-integration | |
| # --- STAGE 3: E2E (No Turbo Cache needed) | |
| e2e-tests: | |
| runs-on: ubuntu-latest | |
| environment: defaultenv | |
| needs: [backend-tests, frontend-tests] | |
| timeout-minutes: 10 | |
| env: | |
| PGHOST: 127.0.0.1 | |
| POSTGRES_USER: postgres | |
| POSTGRES_DB: grit | |
| POSTGRES_PASSWORD: password | |
| DATABASE_URL: postgresql://postgres:password@127.0.0.1:5432/grit_test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache Playwright browsers | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: ${{ runner.os }}-playwright-${{ hashFiles('**/package.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-playwright- | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: 'pnpm' | |
| - run: pnpm install --frozen-lockfile | |
| - name: Run Backend E2E tests | |
| env: | |
| POSTGRES_USER: postgres | |
| POSTGRES_DB: grit | |
| DATABASE_URL: postgresql://postgres:password@127.0.0.1:5432/grit_test | |
| run: make test-be-e2e | |
| - name: Run Frontend E2E tests | |
| run: make test-fe-e2e | |
| - name: Upload Playwright report | |
| uses: actions/upload-artifact@v7 | |
| if: always() | |
| with: | |
| name: playwright-report | |
| path: apps/frontend/playwright-report/ | |
| retention-days: 7 |