File tree Expand file tree Collapse file tree 10 files changed +67
-7
lines changed
submodules/lev/.github/workflows Expand file tree Collapse file tree 10 files changed +67
-7
lines changed Original file line number Diff line number Diff line change 63
63
64
64
- name : Run the template integration tests
65
65
run : opam exec -- make test-e2e
66
+
67
+ coverage :
68
+ name : Coverage
69
+ runs-on : ubuntu-latest
70
+ strategy :
71
+ fail-fast : false
72
+ matrix :
73
+ ocaml-compiler :
74
+ - 4.14.x
75
+ steps :
76
+ - uses : actions/checkout@v3
77
+ - name : Use OCaml ${{ matrix.ocaml-compiler }}
78
+ uses : ocaml/setup-ocaml@v2
79
+ with :
80
+ ocaml-compiler : ${{ matrix.ocaml-compiler }}
81
+ opam-depext : false
82
+
83
+ - name : Set git user
84
+ run : |
85
+ git config --global user.name github-actions[bot]
86
+ git config --global user.email github-actions[bot]@users.noreply.github.com
87
+
88
+ - name : Install deps on Unix
89
+ run : |
90
+ opam install . --deps-only
91
+ opam exec -- make coverage-deps install-test-deps
92
+ - run : opam exec -- make test-coverage
93
+ continue-on-error : true
94
+ env :
95
+ COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
96
+ PULL_REQUEST_NUMBER : ${{ github.event.number }}
Original file line number Diff line number Diff line change @@ -93,3 +93,12 @@ nix-fmt:
93
93
$(MAKE ) yarn-install
94
94
dune build @fmt --auto-promote
95
95
cd $(TEST_E2E_DIR ) && yarn fmt
96
+
97
+ .PHONY : coverage-deps
98
+ coverage-deps :
99
+ opam install -y bisect_ppx
100
+
101
+ .PHONY : test-coverage
102
+ test-coverage :
103
+ dune build --instrument-with bisect_ppx --force @lsp/test/runtest @lsp-fiber/runtest @jsonrpc-fiber/runtest @ocaml-lsp-server/runtest
104
+ bisect-ppx-report send-to Coveralls
Original file line number Diff line number Diff line change 1
1
# OCaml-LSP <!-- omit from toc -->
2
2
<!-- TOC is updated automatically by "Markdown All in One" vscode extension -->
3
3
4
- [ ![ Build] ( https://github.com/ocaml/ocaml-lsp/workflows/Build%20and%20Test/badge.svg )] ( https://github.com/ocaml/ocaml-lsp/actions )
4
+ [ ![ Build] [ build-badge ]] [ build ]
5
+ [ ![ Coverage Status] [ coverall-badge ]] [ coverall ]
6
+
7
+ [ build-badge ] : https://github.com/ocaml/ocaml-lsp/workflows/Build%20and%20Test/badge.svg
8
+ [ build ] : https://github.com/ocaml/ocaml-lsp/actions
9
+ [ coverall-badge ] : https://coveralls.io/repos/github/ocaml/ocaml-lsp/badge.svg?branch=master
10
+ [ coverall ] : https://coveralls.io/github/ocaml/ocaml-lsp?branch=master
5
11
6
12
OCaml-LSP is a language server for OCaml that implements [ Language Server
7
13
Protocol] ( https://microsoft.github.io/language-server-protocol/ ) (LSP).
@@ -27,6 +33,7 @@ Protocol](https://microsoft.github.io/language-server-protocol/) (LSP).
27
33
- [ Unusual features] ( #unusual-features )
28
34
- [ Debugging] ( #debugging )
29
35
- [ Contributing to project] ( #contributing-to-project )
36
+ - [ Changelog] ( #changelog )
30
37
- [ Tests] ( #tests )
31
38
- [ Relationship to Other Tools] ( #relationship-to-other-tools )
32
39
- [ History] ( #history )
Original file line number Diff line number Diff line change 1
1
(library
2
2
(name jsonrpc_fiber)
3
- (libraries fiber dyn jsonrpc ppx_yojson_conv_lib stdune yojson))
3
+ (libraries fiber dyn jsonrpc ppx_yojson_conv_lib stdune yojson)
4
+ (instrumentation
5
+ (backend bisect_ppx)))
Original file line number Diff line number Diff line change 1
1
(library
2
- (public_name jsonrpc))
2
+ (public_name jsonrpc)
3
+ (instrumentation
4
+ (backend bisect_ppx)))
Original file line number Diff line number Diff line change 9
9
lsp
10
10
ppx_yojson_conv_lib
11
11
stdune
12
- yojson))
12
+ yojson)
13
+ (instrumentation
14
+ (backend bisect_ppx)))
Original file line number Diff line number Diff line change 5
5
(public_name lsp)
6
6
(libraries jsonrpc ppx_yojson_conv_lib uutf yojson)
7
7
(lint
8
- (pps ppx_yojson_conv)))
8
+ (pps ppx_yojson_conv))
9
+ (instrumentation
10
+ (backend bisect_ppx)))
9
11
10
12
(cinaps
11
13
(files types.ml types.mli)
Original file line number Diff line number Diff line change 2
2
(name main)
3
3
(package ocaml-lsp-server)
4
4
(public_name ocamllsp)
5
- (libraries dune-build-info stdune lsp ocaml_lsp_server))
5
+ (libraries dune-build-info stdune lsp ocaml_lsp_server)
6
+ (instrumentation
7
+ (backend bisect_ppx)))
Original file line number Diff line number Diff line change 36
36
ocamlformat-rpc-lib
37
37
ocamlc-loc)
38
38
(lint
39
- (pps ppx_yojson_conv)))
39
+ (pps ppx_yojson_conv))
40
+ (instrumentation
41
+ (backend bisect_ppx)))
40
42
41
43
(include_subdirs unqualified)
Original file line number Diff line number Diff line change 38
38
- run : opam install --deps-only --with-doc --with-test .
39
39
- run : opam exec -- dune build
40
40
- run : opam exec -- dune runtest
41
+
You can’t perform that action at this time.
0 commit comments