Skip to content

Commit 26f5fde

Browse files
authored
Merge pull request #136 from mbarbin/ocaml-5.4-in-ci
Enable OCaml 5.4 in CI
2 parents 829975e + cc89386 commit 26f5fde

File tree

8 files changed

+25
-22
lines changed

8 files changed

+25
-22
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
os:
1717
- ubuntu-latest
1818
ocaml-compiler:
19-
- 5.3.x
19+
- 5.4.x
2020

2121
runs-on: ${{ matrix.os }}
2222

@@ -32,7 +32,7 @@ jobs:
3232
opam-repositories: |
3333
default: https://github.com/ocaml/opam-repository.git
3434
mbarbin: https://github.com/mbarbin/opam-repository.git
35-
# alpha: https://github.com/kit-ty-kate/opam-alpha-repository.git
35+
alpha: https://github.com/kit-ty-kate/opam-alpha-repository.git
3636
# janestreet-bleeding: https://github.com/janestreet/opam-repository.git
3737
# janestreet-bleeding-external: https://github.com/janestreet/opam-repository.git#external-packages
3838

.github/workflows/deploy-doc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
- name: Setup OCaml
3535
uses: ocaml/setup-ocaml@v3
3636
with:
37-
ocaml-compiler: "5.3.x"
37+
ocaml-compiler: "5.4.x"
3838
dune-cache: true
3939
opam-repositories: |
4040
default: https://github.com/ocaml/opam-repository.git
4141
mbarbin: https://github.com/mbarbin/opam-repository.git
42-
# alpha: https://github.com/kit-ty-kate/opam-alpha-repository.git
42+
alpha: https://github.com/kit-ty-kate/opam-alpha-repository.git
4343
# janestreet-bleeding: https://github.com/janestreet/opam-repository.git
4444
# janestreet-bleeding-external: https://github.com/janestreet/opam-repository.git#external-packages
4545

.github/workflows/more-ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ jobs:
2828
- macos-latest
2929
- ubuntu-latest
3030
ocaml-compiler:
31+
- 5.4.x
3132
- 5.3.x
3233
exclude:
3334
# We exclude the combination already tested in the 'ci' workflow.
3435
- os: ubuntu-latest
35-
ocaml-compiler: 5.3.x
36+
ocaml-compiler: 5.4.x
3637

3738
runs-on: ${{ matrix.os }}
3839

@@ -48,7 +49,7 @@ jobs:
4849
opam-repositories: |
4950
default: https://github.com/ocaml/opam-repository.git
5051
mbarbin: https://github.com/mbarbin/opam-repository.git
51-
# alpha: https://github.com/kit-ty-kate/opam-alpha-repository.git
52+
alpha: https://github.com/kit-ty-kate/opam-alpha-repository.git
5253
# janestreet-bleeding: https://github.com/janestreet/opam-repository.git
5354
# janestreet-bleeding-external: https://github.com/janestreet/opam-repository.git#external-packages
5455

.github/workflows/test-deploy-doc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
- name: Setup OCaml
3535
uses: ocaml/setup-ocaml@v3
3636
with:
37-
ocaml-compiler: "5.3.x"
37+
ocaml-compiler: "5.4.x"
3838
dune-cache: true
3939
opam-repositories: |
4040
default: https://github.com/ocaml/opam-repository.git
4141
mbarbin: https://github.com/mbarbin/opam-repository.git
42-
# alpha: https://github.com/kit-ty-kate/opam-alpha-repository.git
42+
alpha: https://github.com/kit-ty-kate/opam-alpha-repository.git
4343
# janestreet-bleeding: https://github.com/janestreet/opam-repository.git
4444
# janestreet-bleeding-external: https://github.com/janestreet/opam-repository.git#external-packages
4545

dune-project

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,7 @@
155155
(synopsis "Tests for dunolint")
156156
(depends
157157
(ocaml
158-
(and
159-
(>= 5.3)
160-
(< 5.4~)))
158+
(>= 5.3))
161159
(dune
162160
(>= 3.20))
163161
(base
@@ -256,9 +254,7 @@
256254
(allow_empty) ; The package is attached to stanza in doc/ however dune doesn't see it.
257255
(depends
258256
(ocaml
259-
(and
260-
(>= 5.3)
261-
(< 5.4~)))
257+
(>= 5.3))
262258
(dune
263259
(>= 3.20))
264260
(ocamlformat

dunolint-dev.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ homepage: "https://github.com/mbarbin/dunolint"
99
doc: "https://mbarbin.github.io/dunolint/"
1010
bug-reports: "https://github.com/mbarbin/dunolint/issues"
1111
depends: [
12-
"ocaml" {>= "5.3" & < "5.4~"}
12+
"ocaml" {>= "5.3"}
1313
"dune" {>= "3.17" & >= "3.20"}
1414
"ocamlformat" {= "0.28.1"}
1515
"base" {>= "v0.17"}

dunolint-tests.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ homepage: "https://github.com/mbarbin/dunolint"
88
doc: "https://mbarbin.github.io/dunolint/"
99
bug-reports: "https://github.com/mbarbin/dunolint/issues"
1010
depends: [
11-
"ocaml" {>= "5.3" & < "5.4~"}
11+
"ocaml" {>= "5.3"}
1212
"dune" {>= "3.17" & >= "3.20"}
1313
"base" {>= "v0.17"}
1414
"cmdlang" {>= "0.0.9"}

lib/dunolint_engine/src/running_mode.ml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,18 @@
1919
(* <http://www.gnu.org/licenses/> and <https://spdx.org>, respectively. *)
2020
(*********************************************************************************)
2121

22-
type t =
23-
| Dry_run
24-
| Check
25-
| Force_yes
26-
| Interactive
27-
[@@deriving compare, equal, sexp_of]
22+
module T = struct
23+
[@@@coverage off]
24+
25+
type t =
26+
| Dry_run
27+
| Check
28+
| Force_yes
29+
| Interactive
30+
[@@deriving compare, equal, sexp_of]
31+
end
32+
33+
include T
2834

2935
let default = Interactive
3036

0 commit comments

Comments
 (0)