Skip to content

Merge pull request #138 from mission-minded-llc/feat/integrate-theme #20

Merge pull request #138 from mission-minded-llc/feat/integrate-theme

Merge pull request #138 from mission-minded-llc/feat/integrate-theme #20

name: "Prisma Sync - Test Environment"
description:
"Sync the Prisma schema with the test database. Should only be run when the Prisma schema changes
or sample data changes are merged to the `develop` branch."
on:
push:
branches: [develop]
paths:
- "**.sql"
- "**.prisma"
- "**.csv"
workflow_dispatch:
jobs:
deploy-app:
name: Prisma Sync - Test Environment
runs-on: ubuntu-latest
env:
DATABASE_URL: "${{ secrets.DATABASE_URL_BASE }}ampdresume_test?schema=ampdresume"
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-dependencies
- name: Migrate database
run: npm run prisma:migrate
- name: Seed database
run: npm run prisma:seed