File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
packages/adders/_tests/drizzle Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
import fs from 'node:fs' ;
2
2
import path from 'node:path' ;
3
+ import process from 'node:process' ;
3
4
import { fileURLToPath } from 'node:url' ;
4
5
import { execSync } from 'node:child_process' ;
5
6
import * as vitest from 'vitest' ;
@@ -10,7 +11,11 @@ import { pageServer, pageComp } from './fixtures.ts';
10
11
11
12
const { test, variants, prepareServer } = setupTest ( { drizzle } ) ;
12
13
14
+ // only linux is supported for running docker containers in github runners
15
+ const noDocker = process . env . CI && process . platform !== 'linux' ;
16
+
13
17
vitest . beforeAll ( ( ) => {
18
+ if ( noDocker ) return ;
14
19
const cwd = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
15
20
execSync ( 'docker compose up --detach' , { cwd, stdio : 'pipe' } ) ;
16
21
@@ -33,6 +38,7 @@ const testCases = [
33
38
test . concurrent . for ( testCases ) (
34
39
'queries database - $name - $variant' ,
35
40
async ( { options, variant } , { page, ...ctx } ) => {
41
+ if ( options . docker && noDocker ) ctx . skip ( ) ;
36
42
const cwd = await ctx . run ( variant , { drizzle : options as any } ) ;
37
43
38
44
const ts = variant === 'kit-ts' ;
You can’t perform that action at this time.
0 commit comments