Skip to content

Commit

Permalink
Use github actions
Browse files Browse the repository at this point in the history
Closes #115
  • Loading branch information
anuragsoni committed Dec 6, 2019
1 parent 8952d65 commit a2325ed
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 34 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Format
on:
push:
branches:
- master
jobs:
build:
name: Format OCaml code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: avsm/[email protected]
with:
ocaml-version: 4.09.0
- name: Install dependencies
run: opam install dune ocamlformat
- name: Build
run: opam exec -- dune build
- name: Format
run: opam exec -- dune build @fmt --auto-promote || true
- name: Create Pull Request
uses: peter-evans/create-pull-request@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: ocamlformat fixes
title: ocamlformat fixes
body: This is an auto-generated PR with fixes by ocamlformat.
labels: ocamlformat, automated pr
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: RoutesTest
on:
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ocaml-version: [ '4.09.0', '4.08.1', '4.07.1', '4.06.1', '4.05.0', '4.04.1' ]
steps:
- uses: actions/checkout@master
- uses: avsm/[email protected]
with:
ocaml-version: ${{ matrix.ocaml-version }}
- name: Install dependencies
run: |
opam pin add opium_kernel.dev -n .
opam pin add opium.dev -n
opam depext -yt opium_kernel
opam depext -yt opium
opam install -t . --deps-only
- name: Build
run: opam exec -- dune build
- name: Run tests
run: opam exec -- dune runtest
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

0 comments on commit a2325ed

Please sign in to comment.