|
1 | | -name: CI |
| 1 | +name: Builds, tests & co |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: [ master ] |
6 | | - pull_request: |
7 | | - branches: [ master ] |
| 4 | + - push |
| 5 | + - pull_request |
| 6 | + |
| 7 | +permissions: read-all |
8 | 8 |
|
9 | 9 | jobs: |
10 | 10 | build: |
11 | 11 | strategy: |
12 | 12 | fail-fast: false |
13 | 13 | matrix: |
14 | 14 | os: |
15 | | - - windows-2022 |
16 | | - |
| 15 | + - ubuntu-latest |
| 16 | + - macos-latest |
| 17 | + - windows-latest |
17 | 18 | ocaml-compiler: |
18 | | - - "ocaml-variants.4.14.1+mingw64c" |
19 | | - - "ocaml.5.0.0,ocaml-option-mingw" |
20 | | - - "ocaml.5.1.0,ocaml-option-mingw" |
| 19 | + - "4.14" |
| 20 | + - "5" |
21 | 21 |
|
22 | 22 | runs-on: ${{ matrix.os }} |
23 | 23 |
|
24 | 24 | steps: |
25 | | - - name: Checkout code |
| 25 | + - name: Checkout tree |
26 | 26 | uses: actions/checkout@v5 |
27 | 27 |
|
28 | | - - name: Use OCaml ${{ matrix.ocaml-compiler }} |
29 | | - uses: ocaml/setup-ocaml@v2 |
| 28 | + - name: Set-up OCaml |
| 29 | + uses: ocaml/setup-ocaml@v3 |
30 | 30 | with: |
31 | 31 | ocaml-compiler: ${{ matrix.ocaml-compiler }} |
32 | | - opam-repositories: | |
33 | | - dra27: https://github.com/dra27/opam-repository.git#windows-5.0 |
34 | | - default: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset |
35 | | - standard: https://github.com/ocaml/opam-repository.git |
36 | | -
|
37 | | - - name: Install dependencies |
38 | | - run: | |
39 | | - opam install . --deps-only --with-test |
40 | | -
|
41 | | - - name: Build |
42 | | - run: | |
43 | | - opam exec -- dune build @all |
44 | | -
|
45 | | - - name: Tests |
46 | | - run: | |
47 | | - opam exec -- dune build @runtest |
48 | | -
|
49 | | - - name: Opam Lint |
50 | | - run: | |
51 | | - opam lint gitlab-unix.opam gitlab.opam lab.opam |
| 32 | + |
| 33 | + - run: opam install . --deps-only --with-test |
| 34 | + |
| 35 | + - run: opam exec -- dune build |
| 36 | + |
| 37 | + - run: opam exec -- dune runtest |
| 38 | + |
| 39 | + lint-doc: |
| 40 | + runs-on: ubuntu-latest |
| 41 | + steps: |
| 42 | + - name: Checkout tree |
| 43 | + uses: actions/checkout@v5 |
| 44 | + - name: Set-up OCaml |
| 45 | + uses: ocaml/setup-ocaml@v3 |
| 46 | + with: |
| 47 | + ocaml-compiler: "5" |
| 48 | + - uses: ocaml/setup-ocaml/lint-doc@v3 |
| 49 | + |
| 50 | + lint-fmt: |
| 51 | + runs-on: ubuntu-latest |
| 52 | + steps: |
| 53 | + - name: Checkout tree |
| 54 | + uses: actions/checkout@v5 |
| 55 | + - name: Set-up OCaml |
| 56 | + uses: ocaml/setup-ocaml@v3 |
| 57 | + with: |
| 58 | + ocaml-compiler: "5" |
| 59 | + - uses: ocaml/setup-ocaml/lint-fmt@v3 |
| 60 | + |
| 61 | + lint-opam: |
| 62 | + runs-on: ubuntu-latest |
| 63 | + steps: |
| 64 | + - name: Checkout tree |
| 65 | + uses: actions/checkout@v5 |
| 66 | + - name: Set-up OCaml |
| 67 | + uses: ocaml/setup-ocaml@v3 |
| 68 | + with: |
| 69 | + ocaml-compiler: "5" |
| 70 | + - uses: ocaml/setup-ocaml/lint-opam@v3 |
0 commit comments