From ae0162beda19edcde0901d784970dad11e3f3f50 Mon Sep 17 00:00:00 2001 From: Kate Date: Sat, 1 Jan 2022 13:37:21 +0000 Subject: [PATCH] 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 --- .github/workflows/main.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bdbe0ab7..cf685367 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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