ci: Bump actions/checkout from 4 to 6 (#3) #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |