This repository was archived by the owner on Apr 24, 2021. It is now read-only.
File tree 1 file changed +35
-32
lines changed
1 file changed +35
-32
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
3
on :
4
- push :
5
- branches : [ master ]
6
4
pull_request :
7
- branches : [ master ]
5
+ push :
6
+ schedule :
7
+ # Prime the caches every Monday
8
+ - cron : 0 1 * * MON
8
9
9
10
jobs :
10
11
test :
11
- runs-on : macos-latest
12
+ strategy :
13
+ fail-fast : false
14
+ matrix :
15
+ os :
16
+ - macos-latest
17
+ - ubuntu-latest
18
+ - windows-latest
19
+ ocaml-compiler :
20
+ - 4.06.x
21
+
22
+
23
+
24
+ runs-on : ${{ matrix.os }}
12
25
13
26
steps :
14
-
15
-
16
- - name : Cache OCaml's opam
17
-
18
- with :
19
- path : ~/.opam
20
- key : macos-latest-ocaml-4.06.1
21
-
22
- - name : Cache npm
23
-
24
- with :
25
- path : ~/.npm
26
- key : macos-latest-node-14.4.0-${{hashFiles('package-lock.json')}}
27
-
28
- - name : Use OCaml
29
-
30
- with :
31
- ocaml-version : 4.06.1
32
-
33
- - name : Use Node.js
34
-
35
- with :
36
- node-version : 14.4.0
37
-
38
- - run : npm install
39
-
40
- - run : opam install . --deps-only
41
- - run : eval $(opam env) && opam exec -- dune build
27
+ - name : Checkout code
28
+ uses : actions/checkout@v2
29
+
30
+ - name : Use Node.js 14.x
31
+ uses : actions/setup-node@v2
32
+ with :
33
+ node-version : 14.x
34
+
35
+ - run : npm ci
36
+
37
+ - name : Use OCaml ${{ matrix.ocaml-compiler }}
38
+ uses : avsm/setup-ocaml@v2
39
+ with :
40
+ ocaml-compiler : ${{ matrix.ocaml-compiler }}
41
+
42
+ - run : opam install . --deps-only
43
+
44
+ - run : opam exec -- dune build
You can’t perform that action at this time.
0 commit comments