Make CI closer to what users would do

This should detect issues such as the ones encountered in https://github.com/ocaml/opam-repository/pull/20345 sooner
This commit is contained in:
Kate 2022-01-01 13:37:21 +00:00 committed by GitHub
parent 0bb7094ef8
commit ae0162beda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,8 +14,9 @@ jobs:
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- run: opam pin -n .
- run: opam depext -yt tiny_httpd tiny_httpd_camlzip
- run: opam install -t . --deps-only
- run: opam exec -- dune build @install
- run: opam exec -- dune runtest
if: ${{ matrix.operating-system == 'unbuntu-latest' }}
- run: opam install tiny_httpd
- run: opam install tiny_httpd_camlzip
- run: opam reinstall -t tiny_httpd
- run: opam reinstall -t tiny_httpd_camlzip
- run: opam remove tiny_httpd tiny_httpd_camlzip
- run: opam exec -- dune build @install @runtest