diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..021cede --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +# Imported form Setup-OCaml +name: Main build/test +on: [push, pull_request] +jobs: + build: + strategy: + fail-fast: false + matrix: + os: + - macos-latest + - ubuntu-latest + - windows-latest + ocaml-compiler: + - 4.12.x + - 4.13.x + runs-on: ${{ matrix.os }} + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Use OCaml ${{ matrix.ocaml-compiler }} + uses: ocaml/setup-ocaml@v2 + with: + ocaml-compiler: ${{ matrix.ocaml-compiler }} + - run: opam install tezos-contract-metadata.opam --deps-only --with-test + - run: opam exec -- dune build + - run: opam exec -- dune runtest diff --git a/tezos-contract-metadata-cli.opam b/tezos-contract-metadata-cli.opam index 58d2e70..adda09b 100644 --- a/tezos-contract-metadata-cli.opam +++ b/tezos-contract-metadata-cli.opam @@ -22,7 +22,7 @@ depends: [ "odoc" {with-doc} ] build: [ - ["dune" "subst" "--root" "."] {dev} +# ["dune" "subst" "--root" "."] {dev} [ "dune" "build" diff --git a/tezos-contract-metadata-test.opam b/tezos-contract-metadata-test.opam deleted file mode 100644 index 9f0e2b6..0000000 --- a/tezos-contract-metadata-test.opam +++ /dev/null @@ -1,35 +0,0 @@ -# This file is generated by dune, edit dune-project instead -opam-version: "2.0" -synopsis: "Tests for tezos-contract-metadata" -description: "A separate projeect because of different tests" -maintainer: ["seb@mondet.org"] -authors: ["Tezos Devteam"] -license: "MIT" -homepage: "https://github.com/oxheadalpha/tezos-contract-metadata" -bug-reports: "https://github.com/oxheadalpha/tezos-contract-metadata/issues" -depends: [ - "base" {>= "0.14.0"} - "dune" {>= "2.9" & >= "2.9"} - "ppx_expect" {>= "0.14.0"} - "ppx_inline_test" {>= "0.14.0"} - "tezos-contract-metadata" {= "0.2"} - "odoc" {with-doc} -] -build: [ - ["dune" "subst" "--root" "."] {dev} - [ - "dune" - "build" - "-p" - name - "-j" - jobs - "--promote-install-files" - "false" - "@install" - "@runtest" {with-test} - "@doc" {with-doc} - ] - ["dune" "install" "-p" name "--create-install-files" name] -] -dev-repo: "git+https://github.com/oxheadalpha/tezos-contract-metadata.git"