1
+ name : Make a coverate report
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ types : [opened, reopened, review_requested, synchronize]
7
+ workflow_dispatch :
8
+
9
+ env :
10
+ CLASSPATH : " :/usr/lib/opensourcecobol4j/libcobj.jar:/usr/lib/opensourcecobol4j/sqlite.jar"
11
+
12
+ jobs :
13
+ run-tests :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+
17
+ - name : Install dependencies on Ubuntu 22.04
18
+ run : |
19
+ sudo apt update -y
20
+ sudo apt install -y default-jdk build-essential bison flex gettext texinfo automake autoconf gcovr
21
+
22
+ - name : Checkout opensource COBOL 4J
23
+ uses : actions/checkout@v3
24
+
25
+ - name : Install opensource COBOL 4J
26
+ run : |
27
+ curl -L -k -o libcobj/sqlite-jdbc/sqlite.jar https://github.com/xerial/sqlite-jdbc/releases/download/3.36.0.3/sqlite-jdbc-3.36.0.3.jar
28
+ ./configure CFLAGS='-fprofile-arcs -ftest-coverage' --prefix=/usr/
29
+ make
30
+ sudo make install
31
+
32
+ # - name: Run tests "command-line-options"
33
+ # run: |
34
+ # cd tests/
35
+ # ./command-line-options
36
+
37
+ # - name: Run tests "misc"
38
+ # run: |
39
+ # cd tests/
40
+ # ./misc
41
+
42
+ # - name: Run tests "data-rep"
43
+ # run: |
44
+ # cd tests/
45
+ # ./data-rep
46
+
47
+ # - name: Run tests "i18n_sjis"
48
+ # run: |
49
+ # cd tests/
50
+ # ./i18n_sjis
51
+
52
+ # - name: Run tests "jp-compat"
53
+ # run: |
54
+ # cd tests/
55
+ # ./jp-compat
56
+
57
+ # - name: Run tests "run"
58
+ # run: |
59
+ # cd tests/
60
+ # ./run
61
+
62
+ # - name: Run tests "syntax"
63
+ # run: |
64
+ # cd tests/
65
+ # ./syntax
66
+
67
+ # - name: Run NIST test
68
+ # run: |
69
+ # cd tests/cobol85
70
+ # make test
71
+
72
+ # - name: Run Extra NIST test
73
+ # run: |
74
+ # cd tests/cobol85
75
+ # make test-extra
76
+
77
+ # #- name: Run tests "i18n_utf8"
78
+ # # run: |
79
+ # # ./configure --prefix=/usr/ --with-vbisam --enable-utf8
80
+ # # make
81
+ # # make install
82
+ # # ./i18n_utf8 || true
83
+ # # cd ../
84
+
85
+ # - name: Make a coverage report
86
+ # run: |
87
+ # cd cobj
88
+ # gcov -l *.gcda
89
+ # gcovr -r . --html -o report.html
90
+ # mkdir coverage-report
91
+ # cp *.gcno *.gcda *.gcov report.html coverage-report
92
+
93
+ # - name: Archive a coverage report
94
+ # uses: actions/upload-artifact@v3
95
+ # with:
96
+ # name: code-coverage-report
97
+ # path: cobj/coverage-report/
0 commit comments