Skip to content

Commit 9903d90

Browse files
committed
add with-test group
1 parent f559716 commit 9903d90

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

.github/workflows/ci.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ jobs:
150150
# matrix.ocaml_compiler may contain commas
151151
- name: Get OPAM cache key
152152
shell: bash
153-
run: echo "opam_cache_key=opam-env-v4-${{ matrix.os }}-${{ matrix.ocaml_compiler }}-${{ hashFiles('dune-project') }}" | sed 's/,/-/g' >> $GITHUB_ENV
153+
run: echo "opam_cache_key=opam-env-v5-${{ matrix.os }}-${{ matrix.ocaml_compiler }}-${{ hashFiles('dune-project') }}" | sed 's/,/-/g' >> $GITHUB_ENV
154154

155155
- name: Restore OPAM environment
156156
id: cache-opam-env
@@ -186,9 +186,7 @@ jobs:
186186
187187
- name: Install OPAM dependencies
188188
if: steps.cache-opam-env.outputs.cache-hit != 'true'
189-
run: |
190-
opam install . --deps-only
191-
opam install ocamlformat=0.26.2
189+
run: opam install . --deps-only --with-test
192190

193191
- name: Cache OPAM environment
194192
if: steps.cache-opam-env.outputs.cache-hit != 'true'

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ opam init
4949
opam switch create 5.2.0 # can also create local switch with opam switch create
5050

5151
# Install dev dependencies from OPAM
52-
opam install . --deps-only --with-dev-setup -y
52+
opam install . --deps-only --with-test --with-dev-setup -y
5353
```
5454

5555
#### npm install

dune-project

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
(>= 4.10))
2323
(ocamlformat
2424
(and
25-
:with-dev-setup
25+
:with-test
2626
(= 0.26.2)))
2727
(ocaml-lsp-server
2828
(and

rescript.opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ homepage: "https://github.com/rescript-lang/rescript-compiler"
88
bug-reports: "https://github.com/rescript-lang/rescript-compiler/issues"
99
depends: [
1010
"ocaml" {>= "4.10"}
11-
"ocamlformat" {with-dev-setup & = "0.26.2"}
11+
"ocamlformat" {with-test & = "0.26.2"}
1212
"ocaml-lsp-server" {with-dev-setup & = "1.19.0"}
1313
"cppo" {= "1.6.9"}
1414
"js_of_ocaml" {= "5.8.1"}

0 commit comments

Comments
 (0)