fix(invitations): preserve onboarding across OAuth #156
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: [dev, main] | |
| pull_request: | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| # Mock secrets are shared by all jobs because `bun install` runs `postinstall` | |
| # (`nuxt prepare`), which throws on missing keys during module init. | |
| env: | |
| # Mock DB port, because quality doesn't use the DB | |
| DATABASE_URL: postgresql://postgres:postgres@localhost:5432/rasg_test?schema=public | |
| NUXT_TELEMETRY_DISABLED: "1" | |
| NODE_ENV: test | |
| AUTH_SECRET: ci-mock-auth-secret-not-for-production | |
| AUTH_ORIGIN: http://localhost:3000 | |
| STRIPE_PK: pk_test_ci_mock | |
| STRIPE_SK: sk_test_ci_mock | |
| STRIPE_WEBHOOK_SECRET: whsec_ci_mock | |
| XAI_API_KEY: ci-mock | |
| OPENMODERATOR_API_KEY: ci-mock | |
| CDN_URL: https://cdn.topiqu.com | |
| EMAIL_FROM: ci@example.com | |
| NUXT_MAIL_USER: ci@example.com | |
| AWS_ACCESS_KEY_ID: ci-mock | |
| AWS_SECRET_ACCESS_KEY: ci-mock | |
| AWS_REGION: eu-central-1 | |
| AWS_S3_BUCKET_NAME: ci-mock-bucket | |
| jobs: | |
| quality: | |
| name: Lint & Typecheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@ecf28ddc73e819eb6fa29df6b34ef8921c743461 # v2.1.3 | |
| with: | |
| bun-version: 1.3.14 | |
| - name: Cache Nuxt build artifacts | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| .nuxt | |
| node_modules/.cache | |
| key: nuxt-${{ runner.os }}-${{ hashFiles('package.json', 'bun.lock', 'nuxt.config.ts') }} | |
| restore-keys: | | |
| nuxt-${{ runner.os }}- | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| # Needed for typecheck | |
| - name: Generate ZenStack / Prisma client | |
| run: bun run zenstack:generate | |
| - name: Lint | |
| run: bun run lint | |
| - name: Check OpenAPI contract | |
| run: bun run openapi:check | |
| - name: Typecheck | |
| run: bun run typecheck | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:16-alpine | |
| env: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_DB: rasg_test | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd "pg_isready -U postgres" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@ecf28ddc73e819eb6fa29df6b34ef8921c743461 # v2.1.3 | |
| with: | |
| bun-version: 1.3.14 | |
| - name: Cache Nuxt build artifacts | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| .nuxt | |
| node_modules/.cache | |
| key: nuxt-${{ runner.os }}-${{ hashFiles('package.json', 'bun.lock', 'nuxt.config.ts') }} | |
| restore-keys: | | |
| nuxt-${{ runner.os }}- | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Generate ZenStack / Prisma client | |
| run: bun run zenstack:generate | |
| - name: Apply database migrations | |
| run: bun run prisma:deploy | |
| - name: Test | |
| run: bun run test |