Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed Apr 30, 2024
1 parent 06b5c2a commit 0bad9ab
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 15 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
57 changes: 42 additions & 15 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Main workflow

on:
pull_request:
push:
pull_request:
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON
Expand All @@ -15,35 +15,62 @@ jobs:
os:
- ubuntu-latest
ocaml-compiler:
- 4.04.x
- 4.05.x
- 4.11.x
- 4.13.x
- 4.14.x
- 5.0.x
- 5.1.x
- "4.04"
- "4.05"
- "4.11"
- "4.13"
- "4.14"
- "5.0"
- "5.1"
include:
- os: macos-latest
ocaml-compiler: 4.14.x
ocaml-compiler: "4.14"
- os: windows-latest
ocaml-compiler: 4.14.x
- os: macos-latest
ocaml-compiler: 5.1.x
ocaml-compiler: "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 ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
allow-prerelease-opam: true
opam-depext-flags: --with-test

- run: opam install . --deps-only --with-test

- run: opam exec -- make build

- run: opam exec -- make test

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-opam:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Use OCaml 4.14.x
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: "4.14"
allow-prerelease-opam: true

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

0 comments on commit 0bad9ab

Please sign in to comment.