File tree Expand file tree Collapse file tree 7 files changed +675
-715
lines changed Expand file tree Collapse file tree 7 files changed +675
-715
lines changed Original file line number Diff line number Diff line change @@ -364,7 +364,9 @@ jobs:
364
364
365
365
- name : Run syntax benchmarks
366
366
if : matrix.benchmarks
367
- run : ./_build/install/default/bin/syntax_benchmarks | tee tests/benchmark-output.json
367
+ run : |
368
+ set -o pipefail
369
+ ./_build/install/default/bin/syntax_benchmarks | tee tests/benchmark-output.json
368
370
369
371
# Benchmarking is disabled for now because of inconsistent run times on different runners
370
372
#
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ shopt -s extglob
4
4
5
5
dune build @fmt --auto-promote
6
6
7
- files=$( find runtime tests -type f \( -name " *.res" -o -name " *.resi" \) ! -name " syntaxErrors*" ! -name " generated_mocha_test.res" ! -path " tests/syntax_ *" ! -path " tests/analysis_tests/tests*" ! -path " */node_modules/*" )
7
+ files=$( find runtime tests -type f \( -name " *.res" -o -name " *.resi" \) ! -name " syntaxErrors*" ! -name " generated_mocha_test.res" ! -path " tests/syntax_tests *" ! -path " tests/analysis_tests/tests*" ! -path " */node_modules/*" )
8
8
./cli/rescript.js format $files
9
9
10
10
yarn format
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ case "$(uname -s)" in
17
17
fi
18
18
19
19
echo " Checking ReScript code formatting..."
20
- files=$( find runtime tests -type f \( -name " *.res" -o -name " *.resi" \) ! -name " syntaxErrors*" ! -name " generated_mocha_test.res" ! -path " tests/syntax_ *" ! -path " tests/analysis_tests/tests*" ! -path " */node_modules/*" )
20
+ files=$( find runtime tests -type f \( -name " *.res" -o -name " *.resi" \) ! -name " syntaxErrors*" ! -name " generated_mocha_test.res" ! -path " tests/syntax_tests *" ! -path " tests/analysis_tests/tests*" ! -path " */node_modules/*" )
21
21
if ./cli/rescript.js format -check $files ; then
22
22
printf " ${successGreen} ✅ ReScript code formatting ok.${reset} \n"
23
23
else
Original file line number Diff line number Diff line change @@ -160,7 +160,9 @@ end = struct
160
160
let parse_rescript src filename =
161
161
let p = Parser. make src filename in
162
162
let structure = ResParser. parse_implementation p in
163
- assert (p.diagnostics == [] );
163
+ if p.diagnostics != [] then (
164
+ Res_diagnostics. print_report p.diagnostics src;
165
+ assert false );
164
166
structure
165
167
166
168
let data_dir = " tests/syntax_benchmarks/data"
You can’t perform that action at this time.
0 commit comments