File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : " functions -tests"
1+ name : " database -tests"
22on :
33 pull_request :
4+ paths :
5+ - " packages/database/**"
46env :
57 SUPABASE_USE_DB : local
68 SUPABASE_PROJECT_ID : test
2628 - name : Setup database
2729 working-directory : ./packages/database
2830 run : pnpm run setup
29- - name : Setup database
30- working-directory : ./packages/database
31- run : pnpm run setup
3231 - name : Serve and run tests
3332 working-directory : ./packages/database
3433 run : |
Original file line number Diff line number Diff line change @@ -23,9 +23,8 @@ export const getVariant = () => {
2323 : process . env [ "SUPABASE_USE_DB" ] ;
2424 if ( variant === undefined ) {
2525 dotenv . config ( ) ;
26- const dbGlobalEnv = join ( findRoot ( ) , '.env' ) ;
27- if ( existsSync ( dbGlobalEnv ) )
28- dotenv . config ( { path : dbGlobalEnv } ) ;
26+ const dbGlobalEnv = join ( findRoot ( ) , ".env" ) ;
27+ if ( existsSync ( dbGlobalEnv ) ) dotenv . config ( { path : dbGlobalEnv } ) ;
2928 variant = process . env [ "SUPABASE_USE_DB" ] ;
3029 }
3130 const processHasVars =
@@ -39,7 +38,11 @@ export const getVariant = () => {
3938 throw new Error ( "Invalid variant: " + variant ) ;
4039 }
4140
42- if ( process . env . HOME === "/vercel" || process . env . GITHUB_ACTIONS === "true" ) {
41+ if (
42+ process . env . HOME === "/vercel" ||
43+ ( process . env . GITHUB_ACTIONS === "true" &&
44+ process . env . GITHUB_TEST !== "test" )
45+ ) {
4346 // deployment should have variables
4447 if ( ! processHasVars ) {
4548 console . error ( "Missing SUPABASE variables in deployment" ) ;
You can’t perform that action at this time.
0 commit comments