File tree Expand file tree Collapse file tree 1 file changed +39
-2
lines changed
Expand file tree Collapse file tree 1 file changed +39
-2
lines changed Original file line number Diff line number Diff line change 99 steps :
1010 - name : Checkout
1111 uses : actions/checkout@v2
12- with :
13- ref : master
12+ - name : Clear result files ahead for test
13+ run : rm -rf test/result
1414 - name : Run funcs
1515 uses : ./
1616 with :
1717 filepath : test/func_samples
18+ - name : Check if result files exist
19+ run : |
20+ cd test/result
21+
22+ files=(elixir_string
23+
24+ golang.json
25+ golang_string
26+
27+ haskell.json
28+
29+ node.json
30+ node_string
31+
32+ perl.json
33+
34+ php.json
35+
36+ python.json
37+ python_second.json
38+ python_string
39+
40+ ruby.json
41+ ruby_second.json
42+ )
43+
44+ status=0
45+
46+ for f in "${files[@]}"
47+ do
48+ if [ ! -f $f ]; then
49+ echo "File not found: $f"
50+ status=1
51+ fi
52+ done
53+
54+ exit $status
1855 - name : Git commit
1956 run : |
2057 # git commit if there's any change
You can’t perform that action at this time.
0 commit comments