Skip to content

Commit 766da4f

Browse files
committed
try pin-depends
1 parent 6626283 commit 766da4f

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

.github/workflows/build.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,10 @@ jobs:
101101
uses: ocaml/setup-ocaml@v2
102102
with:
103103
ocaml-compiler: ${{ matrix.ocaml-compiler }}
104-
opam-pin: false
105-
opam-depext: false
106-
cache-prefix: v2
107-
108-
- run: |
109-
opam pin -y -n melange-jest git+https://github.com/melange-community/melange-jest.git
110-
opam pin -y -n melange-webapi git+https://github.com/melange-community/melange-webapi.git
104+
opam-depext-flags: --with-test
105+
opam-local-packages: |
106+
decoders.opam
107+
melange-decoders.opam
111108
112-
- run: opam install ./decoders.opam ./melange-decoders.opam --with-test
109+
- run: opam exec -- dune build src-js
113110
- run: npx jest _build/default/__tests__

melange-decoders.opam

+5
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,8 @@ build: [
3333
]
3434
]
3535
dev-repo: "git+https://github.com/mattjbray/ocaml-decoders.git"
36+
pin-depends: [
37+
"melange-jest.~dev" "git+https://github.com/melange-community/melange-jest.git"
38+
"melange-fetch.~dev" "git+https://github.com/melange-community/melange-fetch.git"
39+
"melange-webapi.~dev" "git+https://github.com/melange-community/melange-webapi.git"
40+
]

melange-decoders.opam.template

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pin-depends: [
2+
"melange-jest.~dev" "git+https://github.com/melange-community/melange-jest.git"
3+
"melange-fetch.~dev" "git+https://github.com/melange-community/melange-fetch.git"
4+
"melange-webapi.~dev" "git+https://github.com/melange-community/melange-webapi.git"
5+
]

0 commit comments

Comments
 (0)