Merge pull request #486 from ocaml-gospel/dependabot/npm_and_yarn/doc… #474
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: Build and test | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install OCaml compiler | |
| uses: ocaml/setup-ocaml@v3 | |
| with: | |
| ocaml-compiler: 4.14 | |
| dune-cache: true | |
| - name: Install dependencies | |
| run: | | |
| opam install . --deps-only --with-test | |
| - name: Show configuration | |
| run: | | |
| opam exec -- ocamlc -config | |
| opam config list | |
| opam exec -- dune printenv | |
| opam list | |
| - name: Build the test suite | |
| run: opam exec -- dune build | |
| - name: Run the normal tests | |
| run: opam exec -- dune runtest | |
| - name: Install the OPAM package | |
| run: | | |
| opam install --with-test ./gospel.opam |