Skip to content

Commit

Permalink
try pin-depends
Browse files Browse the repository at this point in the history
  • Loading branch information
actionshrimp committed Aug 20, 2023
1 parent 6626283 commit c03cbb7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,10 @@ jobs:
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-pin: false
opam-depext: false
cache-prefix: v2

- run: |
opam pin -y -n melange-jest git+https://github.com/melange-community/melange-jest.git
opam pin -y -n melange-webapi git+https://github.com/melange-community/melange-webapi.git
opam-depext-flags: --with-test
opam-local-packages: |
decoders.opam
melange-decoders.opam
- run: opam install ./decoders.opam ./melange-decoders.opam --with-test
- run: opam exec -- dune build src-js
- run: npx jest _build/default/__tests__
5 changes: 5 additions & 0 deletions melange-decoders.opam
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@ build: [
]
]
dev-repo: "git+https://github.com/mattjbray/ocaml-decoders.git"
pin-depends: [
["melange-jest.~dev" "git+https://github.com/melange-community/melange-jest.git"]
["melange-fetch.~dev" "git+https://github.com/melange-community/melange-fetch.git"]
["melange-webapi.~dev" "git+https://github.com/melange-community/melange-webapi.git"]
]
5 changes: 5 additions & 0 deletions melange-decoders.opam.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pin-depends: [
["melange-jest.~dev" "git+https://github.com/melange-community/melange-jest.git"]
["melange-fetch.~dev" "git+https://github.com/melange-community/melange-fetch.git"]
["melange-webapi.~dev" "git+https://github.com/melange-community/melange-webapi.git"]
]

0 comments on commit c03cbb7

Please sign in to comment.