Skip to content

Commit 8ef14b3

Browse files
committed
Check result files existence
1 parent 378f8a1 commit 8ef14b3

File tree

1 file changed

+39
-2
lines changed

1 file changed

+39
-2
lines changed

.github/workflows/test_run_funcs.yml

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,49 @@ jobs:
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

0 commit comments

Comments
 (0)