diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..94ff76a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,33 @@ +name: Build and test + +on: + pull_request: + push: + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + ocaml-compiler: + - 4.06.x + - 4.14.x + + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Use OCaml ${{ matrix.ocaml-compiler }} + uses: ocaml/setup-ocaml@v2 + with: + ocaml-compiler: ${{ matrix.ocaml-compiler }} + + - run: opam install . --deps-only --with-test + + - run: opam exec -- dune build + + - run: opam exec -- dune runtest diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a5b0d98..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: c -sudo: false -services: - - docker -install: wget https://github.com/ocaml/ocaml-ci-scripts/raw/master/.travis-docker.sh -script: bash ./.travis-docker.sh -env: - global: - - PACKAGE=ocaml-systemd - matrix: - - DISTRO="debian-stable" OCAML_VERSION=4.04.2 - - DISTRO="centos-7" OCAML_VERSION=4.05.0 - - DISTRO="debian-unstable" OCAML_VERSION=4.06.0