File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff 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'
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ opam init
4949opam 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
Original file line number Diff line number Diff line change 2222 ( >= 4 .10) )
2323 ( ocamlformat
2424 ( and
25- :with -dev-setup
25+ :with -test
2626 ( = 0 .26.2) ) )
2727 ( ocaml-lsp-server
2828 ( and
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ homepage: "https://github.com/rescript-lang/rescript-compiler"
88bug-reports: "https://github.com/rescript-lang/rescript-compiler/issues"
99depends: [
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"}
You can’t perform that action at this time.
0 commit comments