File tree 3 files changed +10
-2
lines changed 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 61
61
- name : Generate Test Matrix
62
62
working-directory : e2e
63
63
id : list-tests
64
+ # Assuming tests are all *.test.ts
64
65
run : |
65
- # Assuming tests are all *. test.ts
66
- echo "files=$(find . -name '*. test.ts' -not -path './node_modules/*' | tr '\n' ' ' )" >> "$GITHUB_OUTPUT"
66
+ npm run test:relay-list
67
+ echo "files=$(npm run test:relay-list )" >> "$GITHUB_OUTPUT"
67
68
68
69
run-e2e :
69
70
name : Run E2E Tests
Original file line number Diff line number Diff line change 11
11
"test:relay-single" : " mocha --config .relay-chain.mocharc.json --bail" ,
12
12
"test:relay-funding" : " mocha --config .relay-chain-all.mocharc.json --dry-run" ,
13
13
"test:relay" : " mocha --config .relay-chain-all.mocharc.json" ,
14
+ "test:relay-list" : " node test-files.mjs" ,
14
15
"test:load" : " mocha --config .load-test.mocharc.json" ,
15
16
"format" : " tsc --noEmit --pretty && prettier --write . && eslint --fix ." ,
16
17
"lint" : " tsc --noEmit --pretty && eslint . && prettier --check ." ,
Original file line number Diff line number Diff line change
1
+ // A quick file used by CI to list all the test files as an array for the matrix
2
+ import process from 'node:process' ;
3
+ import { globSync } from 'glob' ;
4
+
5
+ const files = globSync ( '**/*.test.ts' , { ignore : 'node_modules/**' } ) ;
6
+ process . stdout . write ( JSON . stringify ( files ) ) ;
You can’t perform that action at this time.
0 commit comments