Skip to content

Commit

Permalink
Update GitHub Actions (#139)
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto authored Apr 30, 2024
1 parent ccc5cb4 commit c8f3ac5
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 20 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
60 changes: 40 additions & 20 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,44 +17,64 @@ jobs:
- ubuntu-latest
- windows-latest
ocaml-compiler:
- 4.08.x
- 4.09.x
- 4.10.x
- 4.11.x
- 4.12.x
- "4.12"
- "4.13"
- "4.14"

runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Checkout tree
uses: actions/checkout@v4

- name: Use OCaml ${{ matrix.ocaml-compiler }}
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
allow-prerelease-opam: true

- run: opam install . --deps-only

- run: opam exec -- make all

lint-fmt:
strategy:
matrix:
ocaml-compiler:
- 4.12.x

lint-doc:
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4

- name: Set-up OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: "4.14"
allow-prerelease-opam: true

- uses: ocaml/setup-ocaml/lint-doc@v2

lint-fmt:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Checkout tree
uses: actions/checkout@v4

- name: Use OCaml ${{ matrix.ocaml-compiler }}
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
ocaml-compiler: "4.14"
allow-prerelease-opam: true

- run: opam depext ocamlformat=$(cat .ocamlformat | grep version | cut -d '=' -f 2) --install
- uses: ocaml/setup-ocaml/lint-fmt@v2

lint-opam:
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4

- name: Set-up OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: "4.14"
allow-prerelease-opam: true

- run: opam exec -- make fmt
- uses: ocaml/setup-ocaml/lint-opam@v2

0 comments on commit c8f3ac5

Please sign in to comment.