Skip to content

Commit

Permalink
Merge pull request #1 from shonfeder/add-ci
Browse files Browse the repository at this point in the history
Add GitHub action workflow
  • Loading branch information
shonfeder authored Feb 6, 2021
2 parents 978df23 + fc38c3c commit 94d3a82
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 4 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Adapted form https://github.com/avsm/hello-world-action-ocaml/blob/master/.github/workflows/workflow.yml
name: build

on:
- pull_request

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
# - macos-latest
# - windows-latest
ocaml-version:
- 4.11.x
# - 4.10.1
# - 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: actions-ml/setup-ocaml@master
with:
opam-disable-sandboxing: true
dune-cache: true
ocaml-version: ${{ matrix.ocaml-version }}

- run: opam install . --deps-only --with-doc --with-test

- run: opam exec -- dune build

- run: opam exec -- dune runtest
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

_Tiny executable techniques for dealing with emoji_

![build](https://github.com/shonfeder/emojitsu/workflows/build/badge.svg)

<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-refresh-toc -->
**Table of Contents**

Expand Down
6 changes: 4 additions & 2 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,20 @@ Currently supports:
; dev
(curly (and :with-test (>= 0.2.0)))
(uutf (and :with-test (>= 1.0.2)))
(ppx_string (and :with-test (>= v0.14.0) (< v0.15.0)))
(yojson (and :with-test (>= 1.7.0) (< 1.8.0)))
(mdx (and :with-test (>= 1.7.0) (< 1.8.0)))

; libs
(bos (and (>= 0.2.0) (< 0.3.0)))
(re (and (>= 1.9.0) (< 1.10.0)))
(yojson (and (>= 1.7.0) (< 1.8.0)))

; preprocessors
(ppx_deriving (and (>= 5.1) (< 6.0)))
(ppx_expect (and (>= v0.14.0) (< v0.15.0)))
(ppx_inline_test (and (>= v0.14.0) (< v0.15.0)))
(ppx_string (and (>= v0.14.0) (< v0.15.0)))

; pinned, see ./emojitsu.opam.template
kwdcmd))

(using mdx 0.1)
5 changes: 3 additions & 2 deletions emojitsu.opam
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ depends: [
"dune" {>= "2.7" & > "2.7"}
"curly" {with-test & >= "0.2.0"}
"uutf" {with-test & >= "1.0.2"}
"ppx_string" {with-test & >= "v0.14.0" & < "v0.15.0"}
"yojson" {with-test & >= "1.7.0" & < "1.8.0"}
"mdx" {with-test & >= "1.7.0" & < "1.8.0"}
"bos" {>= "0.2.0" & < "0.3.0"}
"re" {>= "1.9.0" & < "1.10.0"}
"yojson" {>= "1.7.0" & < "1.8.0"}
"ppx_deriving" {>= "5.1" & < "6.0"}
"ppx_expect" {>= "v0.14.0" & < "v0.15.0"}
"ppx_inline_test" {>= "v0.14.0" & < "v0.15.0"}
"ppx_string" {>= "v0.14.0" & < "v0.15.0"}
"kwdcmd"
"odoc" {with-doc}
]
Expand Down

0 comments on commit 94d3a82

Please sign in to comment.