Skip to content

Commit

Permalink
Add GitHub Actions CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgilchrist committed Dec 1, 2022
1 parent d29e331 commit 23696b1
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
54 changes: 54 additions & 0 deletions .github/workflows/cucumber-ocaml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Test cucumber

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 5 * * *"

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-12
- ubuntu-22.04
- windows-2022

ocaml-compiler:
# Test the oldest OCaml version and the two newest versions.
- 4.10.x
- 4.13.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 }}

- name: Install dependencies
run: |
opam install . --deps-only --with-test
- name: Build
run: |
opam exec -- dune build @all
- name: Tests
run: |
opam exec -- dune build @runtest
- name: Opam Lint
run: |
opam lint cucumber.opam

0 comments on commit 23696b1

Please sign in to comment.