Internal/Replace bson UUID with uuid NP-72 #30
Workflow file for this run
This file contains 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: E2E tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- 'develop' | |
- 'release/**' | |
- 'master' | |
jobs: | |
release: | |
name: Cypress tests | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:latest | |
env: | |
POSTGRES_DB: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_USER: postgres | |
ports: | |
- 5432:5432 | |
# Set health checks to wait until postgres has started | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
env: | |
# Prisma | |
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres?schema=public | |
PLATFORM_DATABASE_URL: ${{ secrets.PLATFORM_DATABASE_URL }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Start MongoDB | |
uses: supercharge/[email protected] | |
with: | |
mongodb-replica-set: test-rs | |
mongodb-version: '6.0' | |
mongodb-port: 27017 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: | | |
npm ci | |
- name: Prisma generate and push | |
run: | | |
npm run prisma:generate && | |
npx prisma db push | |
- name: Run Cypress e2e tests | |
run: | | |
npm run cypress:run | |
env: | |
# Next Auth | |
NEXTAUTH_URL: http://localhost:3000 | |
NEXTAUTH_SECRET: abc | |
# Next Auth Discord Provider | |
DISCORD_CLIENT_ID: 123 | |
DISCORD_CLIENT_SECRET: abc | |
# Next Auth Google Provider | |
GOOGLE_CLIENT_ID: 123 | |
GOOGLE_CLIENT_SECRET: abc | |
# Next Auth Facebook provider | |
FACEBOOK_CLIENT_ID: 123 | |
FACEBOOK_CLIENT_SECRET: abc | |
# Email Server | |
EMAIL_SERVER_HOST: host | |
EMAIL_SERVER_PORT: 1234 | |
EMAIL_SERVER_USER: user | |
EMAIL_SERVER_PASSWORD: pass | |
EMAIL_FROM: [email protected] | |
# DEGREE VALIDATOR | |
VALIDATOR: ${{ secrets.VALIDATOR }} | |
NODE_ENV: test | |
VERCEL_ENV: preview | |
# UMAMI | |
NEXT_PUBLIC_UMAMI_URL: hi | |
NEXT_PUBLIC_UMAMI_WEBSITE_ID: bye |