[8.19] Test setup-ocaml v3 #29
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: Lint Opam | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - '**.opam' | |
| concurrency: | |
| group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }}" | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| env: | |
| OCAML_COMILER_VERSION: "4.14.2" | |
| JOBS: 4 | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up opam | |
| uses: ocaml/setup-ocaml@v3 | |
| with: | |
| ocaml-compiler: ${{env.OCAML_COMILER_VERSION}} | |
| opam-repositories: | | |
| coq-released: https://coq.inria.fr/opam/released | |
| default: https://opam.ocaml.org | |
| - name: Set up problem matcher | |
| run: echo "::add-matcher::./.github/opam-errors.json" | |
| - name: Lint opam file | |
| run: opam lint |