name: Opam Dependency Submission

on:
  - push
  - pull_request

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

      - name: Set-up OCaml 5.2
        uses: ocaml/setup-ocaml@v3
        with:
          ocaml-compiler: 5.2
          dune-cache: true
          allow-prerelease-opam: true

      - name: Opam Dependency Submission
        uses: ocaml/setup-ocaml/analysis@v3
