Skip to content

ettorepuccetti is testing with cypress #2

ettorepuccetti is testing with cypress

ettorepuccetti is testing with cypress #2

Workflow file for this run

name: Cypress CI with GitHub Actions
run-name: ${{ github.actor }} is testing with cypress
on: [push]
jobs:
mysql-in-docker-and-cypress:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:latest
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: terrarossa
ports:
# - 32574:3306
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cypress run
env:
DATABASE_URL: ${{vars.DATABASE_URL}}
NEXTAUTH_SECRET: ${{secrets.NEXTAUTH_SECRET}}
NEXTAUTH_URL: ${{secrets.NEXTAUTH_URL}}
AUTH0_CLIENT_ID: ${{secrets.AUTH0_CLIENT_ID}}
AUTH0_CLIENT_SECRET: ${{secrets.AUTH0_CLIENT_SECRET}}
AUTH0_ISSUER: ${{vars.AUTH0_ISSUER}}
AUTH_BASE_URL: ${{vars.AUTH_BASE_URL}}
uses: cypress-io/github-action@v5
with:
build: npm run build
start: npm start && npx prisma seed
browser: chrome