-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from dannywillems/refacto
Refactorize the code with new OCaml tools
- Loading branch information
Showing
15 changed files
with
330 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Main workflow | ||
|
||
on: | ||
- pull_request | ||
- push | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Use OCaml 4.11.0 | ||
uses: avsm/setup-ocaml@v1 | ||
with: | ||
ocaml-version: 4.11.0 | ||
- name: "Install ocamlformat.0.15.0" | ||
run: opam install ocamlformat.0.15.0 | ||
- name: "Check lint" | ||
run: opam exec -- ocamlformat --check src/*.ml* | ||
|
||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- macos-latest | ||
- ubuntu-latest | ||
- windows-latest | ||
ocaml-version: | ||
- 4.11.1 | ||
- 4.10.2 | ||
- 4.09.1 | ||
- 4.08.1 | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use OCaml ${{ matrix.ocaml-version }} | ||
uses: avsm/setup-ocaml@v1 | ||
with: | ||
ocaml-version: ${{ matrix.ocaml-version }} | ||
|
||
- run: opam pin add cordova-plugin-inappbrowser.dev . --no-action | ||
|
||
- run: opam depext cordova-plugin-inappbrowser --yes --with-doc --with-test | ||
|
||
- run: opam install . --deps-only --with-doc --with-test | ||
|
||
- run: opam exec -- dune build | ||
|
||
- run: opam exec -- dune runtest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
*.cma | ||
*.cmo | ||
*.cmi | ||
*.ml | ||
_build | ||
_opam |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,14 @@ | ||
opam-version: "1.2" | ||
name: "ocaml-cordova-plugin-inappbrowser" | ||
opam-version: "2.0" | ||
maintainer: "Danny Willems <[email protected]>" | ||
author: "Danny Willems <[email protected]>" | ||
|
||
authors: "Danny Willems <[email protected]>" | ||
homepage: "https://github.com/dannywillems/ocaml-cordova-plugin-inappbrowser" | ||
bug-reports: "https://github.com/dannywillems/ocaml-cordova-plugin-inappbrowser/issues" | ||
|
||
dev-repo: "https://github.com/dannywillems/ocaml-cordova-plugin-inappbrowser" | ||
|
||
license: "LGPL-3.0 with OCaml linking exception" | ||
|
||
version: "1.0" | ||
|
||
build: [make "build"] | ||
install: [make "install"] | ||
remove: [make "remove"] | ||
|
||
description: "Binding to the inappbrowser cordova plugin using gen_js_api" | ||
synopsis: "Binding to the inappbrowser cordova plugin using gen_js_api" | ||
build: [[ "dune" "build" "-j" jobs "-p" name "@install" ]] | ||
depends: [ | ||
"ocaml" { >= "4.03.0" } | ||
"gen_js_api" | ||
] | ||
available: [ ocaml-version >= "4.03.0" ] |
Oops, something went wrong.