File tree 3 files changed +23
-4
lines changed
3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 5
5
jobs :
6
6
protocol :
7
7
runs-on : ubuntu-latest
8
- env :
9
- K6_CLOUD_TOKEN : ${{ secrets.K6_CLOUD_TOKEN }}
10
- K6_CLOUD_PROJECT_ID : ${{ secrets.K6_CLOUD_PROJECT_ID }}
8
+ # env:
9
+ # K6_CLOUD_TOKEN: ${{ secrets.K6_CLOUD_TOKEN }}
10
+ # K6_CLOUD_PROJECT_ID: ${{ secrets.K6_CLOUD_PROJECT_ID }}
11
11
steps :
12
12
- uses : actions/checkout@v4
13
13
- name : Setup Grafana k6
19
19
with :
20
20
path : |
21
21
./dev/protocol*.js
22
- flags : --vus 10 --duration 5m
22
+ flags : --vus 10 --duration 5m
23
+ parallel : true
Original file line number Diff line number Diff line change @@ -30008,6 +30008,14 @@ async function run() {
30008
30008
}
30009
30009
}
30010
30010
exports.run = run;
30011
+ process.on('SIGINT', () => {
30012
+ console.log('🚨 Caught SIGINT. Exiting...');
30013
+ process.exit(1);
30014
+ });
30015
+ process.on('SIGTERM', () => {
30016
+ console.log('🚨 Caught SIGTERM. Exiting...');
30017
+ process.exit(1);
30018
+ });
30011
30019
async function isCloudIntegrationEnabled() {
30012
30020
if (process.env.K6_CLOUD_TOKEN === undefined || process.env.K6_CLOUD_TOKEN === '') {
30013
30021
return false;
Original file line number Diff line number Diff line change @@ -115,6 +115,16 @@ export async function run(): Promise<void> {
115
115
}
116
116
}
117
117
118
+ process . on ( 'SIGINT' , ( ) => {
119
+ console . log ( '🚨 Caught SIGINT. Exiting...' ) ;
120
+ process . exit ( 1 ) ;
121
+ } ) ;
122
+
123
+ process . on ( 'SIGTERM' , ( ) => {
124
+ console . log ( '🚨 Caught SIGTERM. Exiting...' ) ;
125
+ process . exit ( 1 ) ;
126
+ } )
127
+
118
128
async function isCloudIntegrationEnabled ( ) : Promise < boolean > {
119
129
if ( process . env . K6_CLOUD_TOKEN === undefined || process . env . K6_CLOUD_TOKEN === '' ) {
120
130
return false
You can’t perform that action at this time.
0 commit comments