From 0baebf5b6a335cfe94a269d8e7008c70ad030b00 Mon Sep 17 00:00:00 2001 From: Spiros Eliopoulos Date: Mon, 21 Dec 2020 21:23:25 -0500 Subject: [PATCH 1/3] github-actions: remove .travis.yml --- .travis.yml | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c957b00..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +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: - matrix: - - PACKAGE="bigstringaf" DISTRO="ubuntu-16.04" OCAML_VERSION="4.03" - - PACKAGE="bigstringaf" DISTRO="ubuntu-16.04" OCAML_VERSION="4.04" - - PACKAGE="bigstringaf" DISTRO="ubuntu-16.04" OCAML_VERSION="4.05" - - PACKAGE="bigstringaf" DISTRO="ubuntu-16.04" OCAML_VERSION="4.06" - - PACKAGE="bigstringaf" DISTRO="ubuntu-16.04" OCAML_VERSION="4.07" - - PACKAGE="bigstringaf" DISTRO="ubuntu-16.04" OCAML_VERSION="4.08" - - PACKAGE="bigstringaf" DISTRO="ubuntu-16.04" OCAML_VERSION="4.09" DEPOPTS="ocaml-freestanding" - - PACKAGE="bigstringaf" DISTRO="ubuntu-16.04" OCAML_VERSION="4.10" DEPOPTS="ocaml-freestanding" From 9f1605fe040efbc3d697f0004685cbe3902fa957 Mon Sep 17 00:00:00 2001 From: Spiros Eliopoulos Date: Mon, 21 Dec 2020 21:28:00 -0500 Subject: [PATCH 2/3] github-actions: test workflow --- .github/workflows/test.yml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..775856f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,42 @@ +name: build + +on: + - push + - pull_request + +jobs: + tests: + name: Tests + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + ocaml-version: + - 4.03.0 + - 4.05.0 + - 4.07.0 + - 4.09.0 + - 4.11.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 }} + + - name: Deps + run: | + opam pin add -n bigstringaf . + opam install -t --deps-only . + + - name: Build + run: opam exec -- dune build + + - name: Test + run: opam exec -- dune runtest From 7b5b3b9eacc161b3b7c661f2a93f6b3b0415a4a5 Mon Sep 17 00:00:00 2001 From: Spiros Eliopoulos Date: Mon, 21 Dec 2020 21:35:57 -0500 Subject: [PATCH 3/3] github-actions: update badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b668490..62765ae 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Bigstrings and other string-like types. So here they are. Go crazy. -[![Build Status](https://travis-ci.org/inhabitedtype/bigstringaf.svg?branch=master)](https://travis-ci.org/inhabitedtype/bigstringaf) +[![Build Status](https://github.com/inhabitedtype/bigstringaf/workflows/build/badge.svg)](https://github.com/inhabitedtype/bigstringaf/actions?query=workflow%3A%22build%22) ## Installation