Skip to content

fix: reduce logo size in README #5

fix: reduce logo size in README

fix: reduce logo size in README #5

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
jobs:
check:
name: Lint, Typecheck & Test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: zee_index_test
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres -d zee_index_test"
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis:7-alpine
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/zee_index_test?schema=public
REDIS_URL: redis://localhost:6379
NEXTAUTH_SECRET: super_secret_mock_key_at_least_32_chars_long
NEXTAUTH_URL: http://localhost:3000
SHARE_SECRET_KEY: super_secret_share_key_at_least_32_chars
ADMIN_EMAILS: admin@example.com
ADMIN_PASSWORD: testpass123
GOOGLE_CLIENT_ID: mock_client_id
GOOGLE_CLIENT_SECRET: mock_client_secret
# Dummy token so middleware treats the app as configured (no real Drive calls in these e2e paths).
GOOGLE_REFRESH_TOKEN: dummy_refresh_token_for_ci
NEXT_PUBLIC_ROOT_FOLDER_ID: root-folder-id
NEXT_PUBLIC_ENABLE_LOCAL_STORAGE: "true"
SKIP_ENV_VALIDATION: "1"
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate Prisma Client
run: pnpm prisma generate
- name: Apply database migrations
run: pnpm prisma migrate deploy
- name: Lint
run: pnpm lint
- name: Typecheck
run: pnpm typecheck
- name: Unit Tests
run: pnpm test -- run
- name: Build
run: pnpm build
- name: Get Playwright version
id: playwright-version
run: echo "version=$(pnpm list @playwright/test --depth=0 | grep @playwright/test | awk '{print $2}')" >> $GITHUB_OUTPUT
- name: Cache Playwright binary
uses: actions/cache@v4
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}
restore-keys: |
${{ runner.os }}-playwright-
- name: Install Playwright Browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: pnpm exec playwright install chromium
- name: Install Playwright system dependencies
run: pnpm exec playwright install-deps chromium
- name: Run E2E Tests
run: pnpm test:e2e --project=chromium
env:
CI: true
E2E_ADMIN_EMAIL: admin@example.com
E2E_ADMIN_PASSWORD: testpass123