Skip to content

Commit f99f39f

Browse files
authored
Merge pull request #27 from davesnx/I-25_Test-coverage
2 parents c654f9e + 631f8bc commit f99f39f

File tree

20 files changed

+263
-230
lines changed

20 files changed

+263
-230
lines changed

.github/workflows/ci.yml

+13-6
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,24 @@ jobs:
5757
key: deps-${{ matrix.os }}-${{ hashFiles('**/index.json') }}
5858
restore-keys: deps-${{ matrix.os }}-
5959

60+
- name: Build dependencies
61+
if: steps.deps-cache.outputs.cache-hit != 'true'
62+
run: esy build-dependencies
63+
6064
- name: Build
6165
run: esy build
6266

6367
- name: Test
68+
if: ${{ matrix.os != 'windows-latest' }}
6469
run: |
6570
rm test/__snapshots__/.gitkeep
66-
esy test
67-
# esy dune exec bisect-ppx-report send-to Coveralls *.coverage
71+
esy dune runtest --instrument-with bisect_ppx --force
72+
esy bisect-ppx-report send-to Coveralls
6873
env:
69-
BISECT_ENABLE: "yes"
74+
BISECT_SILENT: "ERR"
7075
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
7176
PULL_REQUEST_NUMBER: ${{ github.event.number }}
7277

73-
- name: Export dependencies
74-
run: esy export-dependencies
75-
7678
- name: Web build
7779
if: ${{ matrix.os == 'ubuntu-latest' }}
7880
run: |
@@ -112,6 +114,11 @@ jobs:
112114
name: bundled
113115
path: _build/default/js/Js.bc.js
114116

117+
# Cleanup build cache if dependencies have changed
118+
- name: Clean build cache
119+
if: steps.deps-cache.outputs.cache-hit != 'true'
120+
run: esy cleanup .
121+
115122
publish:
116123
needs: build
117124
name: Publish

dune-project

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
(lang dune 2.0)
1+
(lang dune 2.7)
22

33
(using menhir 2.0)

esy.json

+9-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"bin": "esy b dune exec Bin",
2626
"build": "esy b dune build",
2727
"start": "esy b dune build --watch",
28-
"test": "esy b dune exec test/Run.exe",
28+
"test": "esy b dune runtest --force",
2929
"format": "esy b dune build @fmt --auto-promote --root ."
3030
},
3131
"esy": {
@@ -42,7 +42,7 @@
4242
},
4343
"devDependencies": {
4444
"@esy-ocaml/reason": "~3.6.0",
45-
"@opam/bisect_ppx": "2.4.1",
45+
"@opam/bisect_ppx": "2.5.0",
4646
"@opam/dune": "^2.7.0",
4747
"@opam/menhir": "20200624",
4848
"@opam/ppx_deriving": "4.5",
@@ -56,8 +56,12 @@
5656
"bats": "^1.1.0"
5757
},
5858
"dependencies": {
59-
"@opam/js_of_ocaml": "3.7.0",
60-
"@opam/js_of_ocaml-compiler": "3.7.0",
61-
"@opam/js_of_ocaml-ppx": "3.7.0"
59+
"@opam/js_of_ocaml": "3.7.1",
60+
"@opam/js_of_ocaml-compiler": "3.7.1",
61+
"@opam/js_of_ocaml-ppx": "3.7.1"
62+
},
63+
"resolutions": {
64+
"esy-m4": "esy-packages/esy-m4#c7cf0ac9221be2b1f9d90e83559ca08397a629e7",
65+
"@opam/menhir": "20201216"
6266
}
6367
}

0 commit comments

Comments
 (0)