-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (50 loc) · 1.63 KB
/
workflow.yml
File metadata and controls
55 lines (50 loc) · 1.63 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
name: Builds, tests & co
on:
pull_request:
push:
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set-up OCaml
uses: ocaml/setup-ocaml@6feb50d340ce0fb56d35cefca7ae674c70cfd986 # v3.5.0
with:
ocaml-compiler: 4
- name: Set-up Mise
uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1.6.4.0.1
with:
cache: false
- name: Load environment variables
run: |
direnv allow .
direnv export gha >"$GITHUB_ENV"
- run: yarn install --immutable
- run: opam install . --deps-only
- run: make
- run: node dist/main.bc.js
lint-fmt:
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set-up OCaml
uses: ocaml/setup-ocaml@6feb50d340ce0fb56d35cefca7ae674c70cfd986 # v3.5.0
with:
ocaml-compiler: 4
- uses: ocaml/setup-ocaml/lint-fmt@6feb50d340ce0fb56d35cefca7ae674c70cfd986 # v3.5.0
lint-opam:
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set-up OCaml
uses: ocaml/setup-ocaml@6feb50d340ce0fb56d35cefca7ae674c70cfd986 # v3.5.0
with:
ocaml-compiler: 4
- uses: ocaml/setup-ocaml/lint-opam@6feb50d340ce0fb56d35cefca7ae674c70cfd986 # v3.5.0