From eee0030a11ec3a2f9fb0651968a28b569b359fd4 Mon Sep 17 00:00:00 2001 From: Lilith River Date: Sun, 6 Aug 2023 16:51:43 -0600 Subject: [PATCH 1/4] Update test.yml Add secrets and npx playwright install --- .github/workflows/test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 91bcd69..b1fb363 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,6 +4,11 @@ on: [push, pull_request] env: DATABASE_PRISMA_URL: postgres://postgres:postgres@localhost:5432/test DATABASE_URL: postgres://postgres:postgres@localhost:5432/test + PUBLIC_URL: http://localhost:5173 + TWILIO_MESSAGING_SERVICE_SID: ${{ secrets.TWILIO_MESSAGING_SERVICE_SID }} + TWILIO_PHONE_NUMBER: ${{ secrets.TWILIO_PHONE_NUMBER }} + TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }} + TWILIO_API_SECRET: ${{ secrets.TWILIO_API_SECRET }} jobs: build: runs-on: ubuntu-latest @@ -41,6 +46,9 @@ jobs: - name: Build in node mode run: yarn nodebuild + + - name: Install playwright + run: npx playwright install - name: Install Playwright dependencies (just chromium for now) run: npx playwright install-deps chromium From 0785d1b6572686b89a9e773fee5d8d7d769156ec Mon Sep 17 00:00:00 2001 From: Lilith River Date: Sun, 6 Aug 2023 16:57:41 -0600 Subject: [PATCH 2/4] Update package.json "postinstall": "prisma migrate dev", --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e94d958..656476c 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "lint": "prettier --plugin-search-dir . --check . && eslint .", "format": "prettier --plugin-search-dir . --write .", "reset": "prisma migrate reset && yarn dev", - "postinstall": "prisma generate", + "postinstall": "prisma migrate dev", "build:prev": "vite build && vite preview", "seed": "prisma db seed" }, From 9f0b48111d90343766433cfdf95d64dce803f7d0 Mon Sep 17 00:00:00 2001 From: Lilith River Date: Sun, 6 Aug 2023 17:05:46 -0600 Subject: [PATCH 3/4] Update test.yml --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b1fb363..d39adb7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,7 @@ env: TWILIO_PHONE_NUMBER: ${{ secrets.TWILIO_PHONE_NUMBER }} TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }} TWILIO_API_SECRET: ${{ secrets.TWILIO_API_SECRET }} + TWILIO_AUTH_TOKEN: ${{ secrets.TWILIO_AUTH_TOKEN }} jobs: build: runs-on: ubuntu-latest From 7e1ea254e9d22ebbad3441d6ab4ac0659a356136 Mon Sep 17 00:00:00 2001 From: Lilith River Date: Sun, 6 Aug 2023 17:14:25 -0600 Subject: [PATCH 4/4] playwright install --with-deps --- .github/workflows/test.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d39adb7..19484cb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,11 +48,8 @@ jobs: - name: Build in node mode run: yarn nodebuild - - name: Install playwright - run: npx playwright install - - - name: Install Playwright dependencies (just chromium for now) - run: npx playwright install-deps chromium + - name: Install playwright & dependencies + run: yarn exec playwright install --with-deps - name: Run tests run: yarn test