Skip to content

Commit 327cd7c

Browse files
committed
Update GitHub Actions workflow
Signed-off-by: Sora Morimoto <[email protected]>
1 parent dec289d commit 327cd7c

File tree

1 file changed

+40
-6
lines changed

1 file changed

+40
-6
lines changed

.github/workflows/workflow.yml

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
1-
name: Main workflow
1+
name: Builds, tests & co
22

33
on:
4-
pull_request:
54
push:
5+
pull_request:
66
schedule:
77
# Prime the caches every Monday
88
- cron: 0 1 * * MON
99

10+
permissions: read-all
11+
1012
jobs:
1113
build:
1214
strategy:
1315
fail-fast: false
1416
matrix:
1517
os:
16-
- macos-latest
1718
- ubuntu-latest
19+
- macos-latest
1820
- windows-latest
1921
ocaml-compiler:
20-
- "4.14"
21-
- "5.2"
22+
- 5
23+
- 4
2224
include:
2325
- os: ubuntu-latest
2426
ocaml-compiler: "4.08"
@@ -40,10 +42,42 @@ jobs:
4042
uses: ocaml/setup-ocaml@v3
4143
with:
4244
ocaml-compiler: ${{ matrix.ocaml-compiler }}
43-
opam-pin: false
4445

4546
- run: opam install . --deps-only
4647

4748
- run: opam exec -- bash ./configure
4849

4950
- run: opam exec -- make all
51+
52+
lint-doc:
53+
runs-on: ubuntu-latest
54+
steps:
55+
- name: Checkout tree
56+
uses: actions/checkout@v4
57+
- name: Set-up OCaml
58+
uses: ocaml/setup-ocaml@v3
59+
with:
60+
ocaml-compiler: 5
61+
- uses: ocaml/setup-ocaml/lint-doc@v3
62+
63+
lint-fmt:
64+
runs-on: ubuntu-latest
65+
steps:
66+
- name: Checkout tree
67+
uses: actions/checkout@v4
68+
- name: Set-up OCaml
69+
uses: ocaml/setup-ocaml@v3
70+
with:
71+
ocaml-compiler: 5
72+
- uses: ocaml/setup-ocaml/lint-fmt@v3
73+
74+
lint-opam:
75+
runs-on: ubuntu-latest
76+
steps:
77+
- name: Checkout tree
78+
uses: actions/checkout@v4
79+
- name: Set-up OCaml
80+
uses: ocaml/setup-ocaml@v3
81+
with:
82+
ocaml-compiler: 5
83+
- uses: ocaml/setup-ocaml/lint-opam@v3

0 commit comments

Comments
 (0)