File tree Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Original file line number Diff line number Diff line change 1
- for file in tests/src/* .{res,resi}; do
2
- output=" $( dirname $file ) /expected/$( basename $file ) .txt"
3
- ./rescript-editor-analysis.exe test $file & > $output
4
- # CI. We use LF, and the CI OCaml fork prints CRLF. Convert.
5
- if [ " $RUNNER_OS " == " Windows" ]; then
6
- perl -pi -e ' s/\r\n/\n/g' -- $output
7
- fi
8
- done
9
-
10
- warningYellow=' \033[0;33m'
11
- successGreen=' \033[0;32m'
12
- reset=' \033[0m'
13
-
14
- diff=$( git ls-files --modified tests/src/expected)
15
- if [[ $diff = " " ]]; then
16
- printf " ${successGreen} ✅ No unstaged tests difference.${reset} \n"
17
- else
18
- printf " ${warningYellow} ⚠️ There are unstaged differences in tests/! Did you break a test?\n${diff} \n${reset} "
19
- git --no-pager diff tests/src/expected
20
- exit 1
21
- fi
1
+ ./rescript-editor-analysis.exe --help
2
+ ./rescript-editor-analysis.exe hover ./tests/src/Auto.res 2 14
You can’t perform that action at this time.
0 commit comments