diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..d1a34aa --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,11 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + commit-message: + prefix: "GA" + include: "scope" + labels: + - "CI" diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..88e5d38 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,43 @@ +name: CI + +on: + - push + - pull_request + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - macos-latest + + ocaml-version: + - 4.04.x + - 4.05.x + - 4.06.x + - 4.07.x + - 4.08.x + - 4.09.x + - 4.10.x + - 4.11.x + - 4.12.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 }} + + - name: Dependencies + run: opam install --deps-only . --with-test + - name: Build + run: opam exec -- dune build + - name: Test + run: opam exec -- dune build @runtest \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1ebb2bc..0000000 --- a/.travis.yml +++ /dev/null @@ -1,34 +0,0 @@ -language: c -sudo: false -services: - - docker -install: wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-docker.sh -script: bash -ex ./.travis-docker.sh -env: - global: - - PINS="graphql_parser:. graphql:. graphql-async:. graphql-lwt:. graphql-cohttp:." - matrix: - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.03" PACKAGE="graphql_parser" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.04" PACKAGE="graphql_parser" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.05" PACKAGE="graphql_parser" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.06" PACKAGE="graphql_parser" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.07" PACKAGE="graphql_parser" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.03" PACKAGE="graphql" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.04" PACKAGE="graphql" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.05" PACKAGE="graphql" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.06" PACKAGE="graphql" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.07" PACKAGE="graphql" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.03" PACKAGE="graphql-lwt" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.04" PACKAGE="graphql-lwt" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.05" PACKAGE="graphql-lwt" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.06" PACKAGE="graphql-lwt" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.07" PACKAGE="graphql-lwt" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.03" PACKAGE="graphql-async" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.04" PACKAGE="graphql-async" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.05" PACKAGE="graphql-async" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.06" PACKAGE="graphql-async" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.07" PACKAGE="graphql-async" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.04" PACKAGE="graphql-cohttp" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.05" PACKAGE="graphql-cohttp" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.06" PACKAGE="graphql-cohttp" - - DISTRO="ubuntu-16.04" OCAML_VERSION="4.07" PACKAGE="graphql-cohttp"