File tree Expand file tree Collapse file tree 5 files changed +8
-6
lines changed
Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ jobs:
2323 - run : yarn prettier:check
2424 - run : yarn lint
2525 - run : yarn test:ci --ci
26- - run : yarn test:e2e --server http1 --suite sample-api
27- - run : yarn test:e2e --server uws --suite sample-api
28- - run : yarn test:e2e --server http1 --suite json-crdt-server
29- - run : yarn test:e2e --server uws --suite json-crdt-server
26+ - run : PORT=10000 yarn test:e2e --server http1 --suite sample-api
27+ - run : PORT=10001 yarn test:e2e --server uws --suite sample-api
28+ - run : PORT=10002 yarn test:e2e --server http1 --suite json-crdt-server
29+ - run : PORT=10003 yarn test:e2e --server uws --suite json-crdt-server
3030 - run : yarn build
3131 - name : Semantic Release
3232 uses : cycjimmy/semantic-release-action@v4
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import {RpcServer} from '../../server/http1/RpcServer';
88export type JsonJoyDemoRpcCaller = ReturnType < typeof createCaller > [ 'caller' ] ;
99
1010const server = RpcServer . startWithDefaults ( {
11- port : 9999 ,
11+ port : + ( process . env . PORT || 9999 ) ,
1212 caller : createCaller ( new Services ( ) ) . caller ,
1313 logger : console ,
1414} ) ;
Original file line number Diff line number Diff line change @@ -12,5 +12,6 @@ export type JsonJoyDemoRpcCaller = ReturnType<typeof createCaller>['caller'];
1212const app = new RpcApp < MyCtx > ( {
1313 uws : App ( { } ) ,
1414 caller : createCaller ( new Services ( ) ) . caller ,
15+ port : + ( process . env . PORT || 9999 ) ,
1516} ) ;
1617app . startWithDefaults ( ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import {createCaller} from '../../common/rpc/__tests__/sample-api';
55import { RpcServer } from '../../server/http1/RpcServer' ;
66
77const server = RpcServer . startWithDefaults ( {
8- port : 9999 ,
8+ port : + ( process . env . PORT || 9999 ) ,
99 caller : createCaller ( ) ,
1010 logger : console ,
1111} ) ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import {RpcApp} from '../../server/uws/RpcApp';
88const app = new RpcApp ( {
99 uws : App ( { } ) ,
1010 caller : createCaller ( ) ,
11+ port : + ( process . env . PORT || 9999 ) ,
1112} ) ;
1213
1314app . startWithDefaults ( ) ;
You can’t perform that action at this time.
0 commit comments