From 53250cf7d016f6802f65adad7ccc5c4b80ee08e4 Mon Sep 17 00:00:00 2001 From: Dave Aitken Date: Fri, 18 Aug 2023 09:54:31 +0100 Subject: [PATCH] fix(build/mel): pins/melange deps --- .github/workflows/build.yml | 9 ++++++--- js/dune-project | 2 ++ js/melange-decoders.opam | 2 ++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 166ac33..64d48c3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -100,9 +100,12 @@ jobs: uses: ocaml/setup-ocaml@v2 with: ocaml-compiler: ${{ matrix.ocaml-compiler }} - opam-depext-flags: --with-test - opam-local-packages: | - js/melange-decoders.opam + + - working-directory: js + run: | + opam pin -y -n melange-jest git@github.com:melange-community/melange-jest.git + opam pin -y -n melange-fetch git@github.com:melange-community/melange-fetch.git + opam pin -y -n melange-webapi git@github.com:melange-community/melange-webapi.git - run: opam install decoders-melange.opam --with-test working-directory: js diff --git a/js/dune-project b/js/dune-project index 7685861..169a9b8 100644 --- a/js/dune-project +++ b/js/dune-project @@ -11,4 +11,6 @@ (depends (ocaml (>= 4.13.0)) (odoc :with-doc) + (melange-fetch (= "dev")) + (melange-webapi (= "dev")) (melange-jest :with-test))) diff --git a/js/melange-decoders.opam b/js/melange-decoders.opam index 77b5453..3fa491a 100644 --- a/js/melange-decoders.opam +++ b/js/melange-decoders.opam @@ -7,6 +7,8 @@ depends: [ "dune" {>= "3.8"} "ocaml" {>= "4.13.0"} "odoc" {with-doc} + "melange-fetch" {= "dev"} + "melange-webapi" {= "dev"} "melange-jest" {with-test} ] build: [