Skip to content

Commit 53feaef

Browse files
committed
Fix playwright CI?
1 parent 2829995 commit 53feaef

File tree

3 files changed

+46
-2
lines changed

3 files changed

+46
-2
lines changed

.github/workflows/playwright.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run: npm ci
5353

5454
- name: Create DB tables
55-
run: npx prisma db push
55+
run: npx dotenv -e .env -- prisma db push
5656

5757
# Note: we always install Chromium because we use it in playwright-setup.ts, but ideally it should be fixed
5858
- name: Install Playwright
@@ -63,7 +63,7 @@ jobs:
6363

6464
# Note: Playwright will start the server by itself, see playwright.config.ts
6565
- name: Run Playwright tests
66-
run: npx playwright test --browser ${{ matrix.browser }}
66+
run: npx dotenv -e .env -- playwright test --browser ${{ matrix.browser }}
6767

6868
- uses: actions/upload-artifact@v3
6969
if: always()

package-lock.json

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
"@types/turndown": "^5.0.1",
112112
"@types/validator": "^13.9.0",
113113
"@typescript-eslint/eslint-plugin": "^6.2.1",
114+
"dotenv-cli": "^7.4.2",
114115
"esbuild": "^0.18.18",
115116
"eslint": "^8.46.0",
116117
"eslint-config-next": "13.4.12",

0 commit comments

Comments
 (0)