Skip to content

Commit

Permalink
Added steps to generate client before migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedgemon4 committed Jan 22, 2024
1 parent 99af18f commit da64433
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/e2e_tests_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,25 @@ jobs:
# wait-for-service-stability: true

setup-db:
name: Set up database
name: Migrate Database
runs-on: ubuntu-latest
needs: ['deploy-preview']
continue-on-error: true
steps:
- uses: actions/checkout@v4
- name: Write environment variables
run: |
echo "${{ secrets.STAGING_ENV_FILE }}" > .env
- name: Install Packages
run: |
npm ci
- name: Generate Prisma
run: |
npx prisma generate
- name: Migrate Database
run: npx prisma migrate deploy &> prisma_migrate.log

cypress-e2e:
name: Run Cypress E2E tests on preview deployment
name: Run Cypress E2E Tests on Preview Deployment
runs-on: ubuntu-latest
needs: [ deploy-preview, setup-db]
steps:
Expand Down

0 comments on commit da64433

Please sign in to comment.