Skip to content

Commit

Permalink
Merge pull request #38 from ocaml-sf/gha
Browse files Browse the repository at this point in the history
Add GHA workflow
  • Loading branch information
erikmd authored Oct 13, 2023
2 parents c3ba1b4 + 4661063 commit 54a1cec
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 8 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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.15.0'
# TODO: Keep up-to-date
- 'ocamlsf/learn-ocaml:master'
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Create directory www
run: |
mkdir -m 755 www
sudo chown -v 1000:1000 www
- name: Run learn-ocaml on the corpus
run: 'docker run --rm -v "$PWD:/repository" -v "$PWD/www:/home/learn-ocaml/www" ${{ matrix.server_image }} build'
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

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/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/ocaml-sf/learn-ocaml-corpus/actions/workflows/test.yml)

0 comments on commit 54a1cec

Please sign in to comment.