Skip to content

Commit

Permalink
Draft CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
rprimet committed Oct 21, 2024
1 parent 9b3fb8f commit bb26141
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 5.0.x

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install dependencies
run: |
opam pin add --dev-repo catala
opam install dune
opam install . --deps-only --with-test
npm ci
- name: Build project
run: |
dune build && dune install
npm run compile
- name: Run tests
run: xvfb-run -a npm run test

0 comments on commit bb26141

Please sign in to comment.