Bump prisma from 5.11.0 to 5.22.0 #264
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: Run Tests | |
on: | |
push: | |
branches: [dev] | |
pull_request: | |
branches: [dev] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:15 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: db | |
ports: | |
- 0432:5432 | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
env: | |
POSTMARK_API_KEY: ${{ secrets.POSTMARK_API_KEY }} | |
PUBLIC_SITE_NAME: TACO [TEST] | |
EMAIL_SENDER_SIGNATURE: ${{ secrets.EMAIL_SENDER_SIGNATURE }} | |
PUBLIC_SENTRY_DSN: ${{ secrets.PUBLIC_SENTRY_DSN }} | |
PUBLIC_SENTRY_ENV: test | |
PUBLIC_SITE_URL: http://localhost:5173 | |
DATABASE_URL: postgresql://postgres:postgres@localhost:0432/db | |
ORIGIN: ${{ vars.ORIGIN }} | |
SECRET_KEY: ${{ secrets.SECRET_KEY }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
PUBLIC_RECAPTCHA_SITE_KEY: ${{ secrets.PUBLIC_RECAPTCHA_SITE_KEY }} | |
RECAPTCHA_SECRET_KEY: ${{ secrets.RECAPTCHA_SECRET_KEY }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm ci | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run Prisma migrations | |
run: npx prisma migrate deploy | |
- name: Run tests | |
id: test | |
run: npx playwright test | |
continue-on-error: true | |
- name: Save artifacts | |
if: steps.test.outcome == 'failure' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: playwright-report | |
path: playwright-report | |
retention-days: 7 | |
- name: Fail if test fails | |
if: steps.test.outcome == 'failure' | |
run: exit 1 |