File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 50
50
- name : pnpm install
51
51
uses : falcondev-it/.github/actions/pnpm-install@master
52
52
53
- - run : VITEST_DB_DRIVER=${{ matrix.db-driver }} VITEST_STORAGE_DRIVER=${{ matrix.storage-driver }} pnpm run test:run
53
+ - run : touch mock.key
54
+ - run : touch mock.crt
55
+
56
+ - run : pnpm run test:run
57
+ env :
58
+ VITEST_DB_DRIVER : ${{ matrix.db-driver }}
59
+ VITEST_STORAGE_DRIVER : ${{ matrix.storage-driver }}
60
+ DISABLE_PROXY : true
61
+ CA_CERT_PATH : mock.crt
62
+ CA_KEY_PATH : mock.key
54
63
55
64
deploy :
56
65
if : github.event.ref == 'refs/heads/dev'
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const envSchema = z.object({
18
18
CA_KEY_PATH : z . string ( ) ,
19
19
CA_CERT_PATH : z . string ( ) ,
20
20
TEMP_DIR : z . string ( ) . default ( tmpdir ( ) ) ,
21
+ DISABLE_PROXY : booleanSchema . default ( 'false' ) ,
21
22
} )
22
23
23
24
const parsedEnv = envSchema . safeParse ( process . env )
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ import { ENV } from './env'
3
3
import { logger } from './logger'
4
4
5
5
export async function initializeProxy ( ) {
6
+ if ( ENV . DISABLE_PROXY ) {
7
+ logger . warn ( 'Proxy is disabled' )
8
+ return
9
+ }
10
+
6
11
const port = ENV . PROXY_PORT
7
12
logger . info ( `Starting proxy server on port ${ port } ...` )
8
13
You can’t perform that action at this time.
0 commit comments