name: CI on: push: branches: [main, admin] pull_request: branches: [main, admin] jobs: build: runs-on: ubuntu-latest timeout-minutes: 15 env: ADMIN_SESSION_SECRET: ${{ secrets.ADMIN_SESSION_SECRET || '0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef' }} SUPER_ADMIN_USERNAME: super SUPER_ADMIN_PASSWORD_HASH: ${{ secrets.SUPER_ADMIN_PASSWORD_HASH || '$2a$12$abcdefghijklmnopqrstuv' }} DATABASE_URL: postgresql://postgres:postgres@localhost:5432/ci NEXT_PUBLIC_APP_DOMAIN: ci.test NEXT_PUBLIC_APP_URL: https://ci.test NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: pk_test_placeholder CLERK_SECRET_KEY: sk_test_placeholder S3_ENDPOINT: https://s3.example.com S3_REGION: eu-2 S3_ACCESS_KEY_ID: placeholder S3_SECRET_ACCESS_KEY: placeholder S3_BUCKET_NAME: ci-bucket steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 20 cache: npm - name: Install dependencies run: npm ci - name: Generate Prisma client run: npx prisma generate - name: Typecheck run: npm run typecheck - name: Lint run: npm run lint continue-on-error: true - name: Tests run: npm test - name: Build run: npm run build