Skip to content

Commit

Permalink
feat: Add GHA workflow
Browse files Browse the repository at this point in the history
Testing learn-ocaml-corpus with:

- ocamlsf/learn-ocaml:0.12
- ocamlsf/learn-ocaml:0.13.1
- ocamlsf/learn-ocaml:0.14.1
- ocamlsf/learn-ocaml:master
  • Loading branch information
erikmd committed Jul 21, 2023
1 parent 1df1d8d commit ad801ad
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- '**'

jobs:
test:
name: Run learn-ocaml on the corpus
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
server_image:
- 'ocamlsf/learn-ocaml:0.12'
- 'ocamlsf/learn-ocaml:0.13.1'
- 'ocamlsf/learn-ocaml:0.14.1'
# TODO: Keep up-to-date
- 'ocamlsf/learn-ocaml:master'
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Run learn-ocaml on the corpus
run: 'docker run --rm -v "$PWD":/repository ${{ matrix.server_image }} build'
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# The Learn OCaml Corpus

[![CI](https://github.com/ocaml-sf/learn-ocaml-corpus/workflows/CI/badge.svg?branch=master)](https://github.com/ocaml-sf/learn-ocaml-corpus/actions?query=workflow%3ACI)

0 comments on commit ad801ad

Please sign in to comment.