Merge pull request #138 from mission-minded-llc/feat/integrate-theme #20
This file contains hidden or 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: "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 |