Skip to content

Commit bb24512

Browse files
committedApr 8, 2022
fix: don't opam install directly
1 parent a91f1f6 commit bb24512

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed
 

‎action.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,18 @@ runs:
2828
shell: sh
2929
run: opam repo add alpha git+https://github.com/kit-ty-kate/opam-alpha-repository.git --verbose
3030
- name: "Build and test the package"
31-
shell: sh
32-
run: opam install --with-test --yes --verbose .
33-
- name: "Build the documentation"
34-
if: ${{ inputs.build-doc == 'true' }}
3531
shell: sh
3632
run: |
37-
opam install --with-doc --deps-only --yes --verbose .
38-
opam exec -- dune build @doc
33+
if ${{ inputs.build-doc == 'true' }}; then
34+
opam install --with-test --with-doc --deps-only --yes --verbose .
35+
opam exec -- dune build
36+
opam exec -- dune runtest
37+
opam exec -- dune build @doc
38+
else
39+
opam install --with-test --yes --deps-only --verbose .
40+
opam exec -- dune build
41+
opam exec -- dune runtest
42+
fi
3943
- name: "Publish the documentation"
4044
if: ${{ inputs.build-doc == 'true' && inputs.publish-doc-if-built == 'true' }}
4145
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)
Please sign in to comment.