Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GHA workflow #38

Merged
merged 4 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)