Merge pull request #312 from nikochiko/fix-link-to-doc #394
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: Main workflow | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - macos-latest | |
| - ubuntu-latest | |
| - windows-latest | |
| ocaml-compiler: | |
| # Decision on version matrix informed by https://discuss.ocaml.org/t/which-ocaml-compiler-versions-should-we-run-against-in-ci/7933/2 | |
| - 4.13.x | |
| - 4.14.x | |
| include: | |
| - ocaml-compiler: 5.0.x | |
| os: | |
| - ubuntu-latest | |
| - ocaml-compiler: 5.0.x | |
| os: | |
| - macos-latest | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Use OCaml ${{ matrix.ocaml-compiler }} | |
| uses: ocaml/setup-ocaml@v2 | |
| with: | |
| ocaml-compiler: ${{ matrix.ocaml-compiler }} | |
| - name: Install deps | |
| run: opam install . --deps-only --with-doc --with-test | |
| - name: Build | |
| run: opam exec -- make build | |
| - name: Test | |
| run: opam exec -- make test | |
| lint-doc: | |
| 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.x | |
| dune-cache: true | |
| - name: Lint doc | |
| uses: ocaml/setup-ocaml/lint-doc@v2 | |
| lint-fmt: | |
| 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.x | |
| dune-cache: true | |
| - name: Lint fmt | |
| uses: ocaml/setup-ocaml/lint-fmt@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.x | |
| dune-cache: true | |
| - name: Lint opam | |
| uses: ocaml/setup-ocaml/lint-opam@v2 |