From 308bb29ec568c552f5c30e7bb70da429d04091f0 Mon Sep 17 00:00:00 2001 From: Ettore Puccetti Date: Sat, 6 Jan 2024 00:41:20 +0100 Subject: [PATCH] fix seed command on gh action --- .github/workflows/cypress-testing.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cypress-testing.yml b/.github/workflows/cypress-testing.yml index 83d25c7..ca074a7 100644 --- a/.github/workflows/cypress-testing.yml +++ b/.github/workflows/cypress-testing.yml @@ -35,7 +35,7 @@ jobs: - name: Cypress install uses: cypress-io/github-action@v5 with: - build: pnpm build:test + build: pnpm build runTests: false - name: Save build folder uses: actions/upload-artifact@v4 @@ -70,7 +70,7 @@ jobs: uses: cypress-io/github-action@v5 with: # use build step to seed the database, build is already done in install job - build: pnpm db:seed + build: pnpm prisma db push && pnpm prisma db seed start: pnpm start wait-on: "http://localhost:3000" wait-on-timeout: 120 @@ -102,7 +102,7 @@ jobs: with: config: "viewportWidth=375,viewportHeight=667" #use build step to seed the database, build is already done in install job - build: pnpm db:seed + build: pnpm prisma db push && pnpm prisma db seed start: pnpm start wait-on: "http://localhost:3000" wait-on-timeout: 120