Skip to content

Commit

Permalink
feat: maybe not loading .env properly on github actions?
Browse files Browse the repository at this point in the history
  • Loading branch information
Joaquin Bravo Contreras committed Jun 28, 2024
1 parent bc3a0da commit 41a89c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
run: npx prisma migrate reset --force

- name: create admin user
run: echo "ADMIN_COOKIE=$(KYSELY_DEBUG=0 npx ts-node --require tsconfig-paths/register ./tasks/create-user.ts 'test@example.com' ADMIN)" >> $GITHUB_ENV
run: echo "ADMIN_COOKIE=$(KYSELY_DEBUG=0 npx ts-node -r dotenv/config -r tsconfig-paths/register ./tasks/create-user.ts 'test@example.com' ADMIN)" >> $GITHUB_ENV

- name: Install Playwright
run: npm ci && npx playwright install --with-deps
Expand Down Expand Up @@ -264,7 +264,7 @@ jobs:
pm2 save
# echo "*** Step: ** Run Playwright tests"
# echo "ADMIN_COOKIE=$(KYSELY_DEBUG=0 npx ts-node --require tsconfig-paths/register ./tasks/create-user.ts 'test@example.com' ADMIN)" >> .env
# echo "ADMIN_COOKIE=$(KYSELY_DEBUG=0 npx ts-node -r dotenv/config -r tsconfig-paths/register ./tasks/create-user.ts 'test@example.com' ADMIN)" >> .env
# npx playwright install --with-deps
# npx playwright test
Expand Down

0 comments on commit 41a89c9

Please sign in to comment.