Skip to content

chore(main): release db 0.1.1 #27

chore(main): release db 0.1.1

chore(main): release db 0.1.1 #27

name: Mobile E2E Tests
on:
pull_request:
paths:
- "apps/mobile/**"
- "packages/**"
- "configs/**"
push:
branches: ["main"]
paths:
- "apps/mobile/**"
- "packages/**"
- "configs/**"
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
env:
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
POSTGRES_PRISMA_URL: postgresql://postgres:postgres@localhost:5432/test_db
POSTGRES_URL_NON_POOLING: postgresql://postgres:postgres@localhost:5432/test_db
FIREBASE_PROJECT_ID: ${{ secrets.FIREBASE_PROJECT_ID }}
FIREBASE_CLIENT_EMAIL: ${{ secrets.FIREBASE_CLIENT_EMAIL }}
FIREBASE_PRIVATE_KEY: ${{ secrets.FIREBASE_PRIVATE_KEY }}
jobs:
e2e:
timeout-minutes: 60
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test_db
ports:
- 5432:5432
options: >-
--health-cmd pg_isready --health-interval 10s --health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install dependencies
run: pnpm install --frozen-lockfile --filter mobile...
- name: Install Playwright Browsers
run: pnpm dlx playwright install --with-deps
- name: Generate Prisma Client
run: pnpm --filter @cuurly/db db:generate
- name: Run database migrations
run: pnpm --filter @cuurly/db db:migrate:deploy
# - name: Seed database
# run: pnpm db:seed
- name: Run E2E tests
run: pnpm --filter mobile e2e:ci
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30