File tree Expand file tree Collapse file tree 3 files changed +23
-20
lines changed Expand file tree Collapse file tree 3 files changed +23
-20
lines changed Original file line number Diff line number Diff line change 92
92
93
93
- name : Tests
94
94
id : test
95
- run : npx hereby test:all ${RACE_FLAG:+"$RACE_FLAG"} ${NOEMBED_FLAG:+"$NOEMBED_FLAG"} ${CONCURRENTTESTPROGRAM_FLAG:+"$CONCURRENTTESTPROGRAM_FLAG"}
95
+ run : npx hereby test ${RACE_FLAG:+"$RACE_FLAG"} ${NOEMBED_FLAG:+"$NOEMBED_FLAG"} ${CONCURRENTTESTPROGRAM_FLAG:+"$CONCURRENTTESTPROGRAM_FLAG"}
96
+ env :
97
+ RACE_FLAG : ${{ (matrix.race && '--race') || '' }}
98
+ NOEMBED_FLAG : ${{ (matrix.noembed && '--noembed') || '' }}
99
+ CONCURRENTTESTPROGRAM_FLAG : ${{ (matrix.concurrent-test-program && '--concurrentTestPrograms') || '' }}
100
+
101
+ - name : API Tests
102
+ run : npx hereby test:api ${RACE_FLAG:+"$RACE_FLAG"} ${NOEMBED_FLAG:+"$NOEMBED_FLAG"} ${CONCURRENTTESTPROGRAM_FLAG:+"$CONCURRENTTESTPROGRAM_FLAG"}
103
+ env :
104
+ RACE_FLAG : ${{ (matrix.race && '--race') || '' }}
105
+ NOEMBED_FLAG : ${{ (matrix.noembed && '--noembed') || '' }}
106
+ CONCURRENTTESTPROGRAM_FLAG : ${{ (matrix.concurrent-test-program && '--concurrentTestPrograms') || '' }}
107
+
108
+ - name : Benchmarks
109
+ run : npx hereby test:benchmarks ${RACE_FLAG:+"$RACE_FLAG"} ${NOEMBED_FLAG:+"$NOEMBED_FLAG"} ${CONCURRENTTESTPROGRAM_FLAG:+"$CONCURRENTTESTPROGRAM_FLAG"}
96
110
env :
97
111
RACE_FLAG : ${{ (matrix.race && '--race') || '' }}
98
112
NOEMBED_FLAG : ${{ (matrix.noembed && '--noembed') || '' }}
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ async function runTestTools() {
267
267
await $test ( { cwd : path . join ( __dirname , "_tools" ) } ) `${ gotestsum ( ) } ./...` ;
268
268
}
269
269
270
- async function runTestJS ( ) {
270
+ async function runTestAPI ( ) {
271
271
await $ `npm run -w @typescript/api test` ;
272
272
}
273
273
@@ -276,29 +276,17 @@ export const testTools = task({
276
276
run : runTestTools ,
277
277
} ) ;
278
278
279
- export const buildJSTest = task ( {
280
- name : "build:js :test" ,
279
+ export const buildAPITests = task ( {
280
+ name : "build:api :test" ,
281
281
run : async ( ) => {
282
282
await $ `npm run -w @typescript/api build:test` ;
283
283
} ,
284
284
} ) ;
285
285
286
- export const testJS = task ( {
287
- name : "test:js" ,
288
- dependencies : [ tsgo , buildJSTest ] ,
289
- run : runTestJS ,
290
- } ) ;
291
-
292
- export const testAll = task ( {
293
- name : "test:all" ,
294
- dependencies : [ tsgo , buildJSTest ] ,
295
- run : async ( ) => {
296
- // Prevent interleaving by running these directly instead of in parallel.
297
- await runTests ( ) ;
298
- await runTestBenchmarks ( ) ;
299
- await runTestTools ( ) ;
300
- await runTestJS ( ) ;
301
- } ,
286
+ export const testAPI = task ( {
287
+ name : "test:api" ,
288
+ dependencies : [ tsgo , buildAPITests ] ,
289
+ run : runTestAPI ,
302
290
} ) ;
303
291
304
292
const customLinterPath = "./_tools/custom-gcl" ;
Original file line number Diff line number Diff line change 38
38
"scripts" : {
39
39
"build" : " tsc -b" ,
40
40
"build:test" : " tsc -b test" ,
41
+ "build:bench" : " tsc -b bench" ,
41
42
"bench" : " node --experimental-strip-types --no-warnings --conditions @typescript/source bench/api.bench.ts" ,
42
43
"test" : " node --test --experimental-strip-types --no-warnings --conditions @typescript/source ./test/**/*.test.ts"
43
44
},
You can’t perform that action at this time.
0 commit comments