-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (52 loc) · 1.5 KB
/
Copy pathworkflow.yml
File metadata and controls
67 lines (52 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Adapted from https://github.com/avsm/hello-world-action-ocaml
name: Tests
on:
- workflow_dispatch
- pull_request
# - push
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
# - macos-latest
- ubuntu-latest
ocaml-compiler:
- 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 Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install OCaml dev dependencies
working-directory: backend
run: make dev-deps
- name: Install OCaml dependencies
working-directory: backend
run: make deps
- name: Update shell environment for opam
working-directory: backend
run: eval $(opam env)
- name: Run OCaml autoformatter
working-directory: backend
run: opam exec -- make fmt
- name: Ensure OCaml autoformatter didn't change anything
working-directory: backend
run: git diff --quiet
- name: Run OCaml tests
working-directory: backend
run: opam exec -- make test
- name: Install Python dependencies
working-directory: frontend
run: make deps
- name: Run Python tests
working-directory: frontend
run: make test