-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.05 KB
/
common.yml
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
name: Common CI workflow
on:
push:
branches:
- main
pull_request:
jobs:
build:
strategy:
matrix:
ocaml-version:
- 5.1.0
node-version:
- hydrogen
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: lts/${{ matrix.node-version }}
cache: yarn
cache-dependency-path: 'jsland/yarn.lock'
- name: Build and test OCaml
uses: kxcdev/ocaml-general-gha@v3
with:
ocaml-version: ${{ matrix.ocaml-version }}
node-version: ${{ matrix.node-version }}
setup-command: "opam install --locked . -y --deps-only --with-test"
build-command: "dune build"
pr-report-test-result: ${{ matrix.ocaml-version == '5.1.0' }}
- name: Build
run: |
cd jsland
yarn
yarn build