Skip to content

ci: Bump actions/checkout from 4 to 6 (#3) #10

ci: Bump actions/checkout from 4 to 6 (#3)

ci: Bump actions/checkout from 4 to 6 (#3) #10

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: "5.1"
- name: Install dependencies
run: opam install . --deps-only --with-test --with-doc
- name: Build
run: opam exec -- dune build
- name: Run tests
run: opam exec -- dune runtest
- name: Check formatting
run: opam exec -- dune build @fmt
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: "5.1"
- name: Install dependencies
run: opam install . --deps-only
- name: Build
run: opam exec -- dune build
- name: Lint with odoc
run: opam exec -- dune build @doc
continue-on-error: true