Skip to content

Commit 2b62d7c

Browse files
committed
fix: provide fallback env vars for supabase and resend in tests
1 parent bab7655 commit 2b62d7c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}
2929
TEST_MONGO_URL: ${{ secrets.MONGO_URL_TEST }}
3030
JWT_SECRET: ${{ secrets.JWT_SECRET }}
31+
SUPABASE_URL: "https://dummy.supabase.co"
32+
SUPABASE_KEY: "dummy-key"
3133

3234
frontend-lint:
3335
runs-on: ubuntu-latest

backend/utils/storage.manager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ const { createClient } = require("@supabase/supabase-js");
33
const { decrypt } = require("./encryption");
44

55
const defaultSupabase = createClient(
6-
process.env.SUPABASE_URL,
7-
process.env.SUPABASE_KEY
6+
process.env.SUPABASE_URL || "https://dummy.supabase.co",
7+
process.env.SUPABASE_KEY || "dummy-key"
88
);
99

1010
async function getStorage(project) {

0 commit comments

Comments
 (0)