docs: add Demo Mode page and update CHANGELOG #15
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: [main, production] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint-and-build: | |
| name: Lint, Typecheck & Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - 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 --filter database exec prisma generate | |
| - name: Build Database package | |
| run: pnpm --filter database build | |
| - name: Build Engines package | |
| run: pnpm --filter engines build | |
| - name: Build API | |
| run: pnpm --filter api build | |
| - name: Build Worker | |
| run: pnpm --filter worker build | |
| - name: Build Admin | |
| run: pnpm --filter admin build | |
| env: | |
| NEXT_PUBLIC_API_URL: http://localhost:3000 | |
| docker-build: | |
| name: Docker Build Test | |
| runs-on: ubuntu-latest | |
| needs: lint-and-build | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build API Image | |
| run: docker build -f docker/Dockerfile.api -t multiwa-api:test . | |
| - name: Build Worker Image | |
| run: docker build -f docker/Dockerfile.worker -t multiwa-worker:test . | |
| - name: Build Admin Image | |
| run: | | |
| docker build -f docker/Dockerfile.admin \ | |
| --build-arg NEXT_PUBLIC_API_URL=http://localhost:3000 \ | |
| -t multiwa-admin:test . | |
| test: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| needs: lint-and-build | |
| services: | |
| postgres: | |
| image: postgres:16-alpine | |
| env: | |
| POSTGRES_USER: test | |
| POSTGRES_PASSWORD: test | |
| POSTGRES_DB: multiwa_test | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 5432:5432 | |
| redis: | |
| image: redis:7-alpine | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 6379:6379 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - 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 --filter database exec prisma generate | |
| - name: Build Database package | |
| run: pnpm --filter database build | |
| - name: Build Engines package | |
| run: pnpm --filter engines build | |
| - name: Run API tests | |
| run: pnpm --filter api test -- --run | |
| env: | |
| DATABASE_URL: postgresql://test:test@localhost:5432/multiwa_test | |
| REDIS_URL: redis://localhost:6379 | |
| JWT_SECRET: test-jwt-secret | |
| JWT_REFRESH_SECRET: test-jwt-refresh-secret | |
| ENCRYPTION_KEY: 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef |