Skip to content

Commit f051da7

Browse files
committed
.github: add check for make install without completions or manpages
1 parent 9082f9b commit f051da7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/CICD.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,26 @@ jobs:
278278
run: make nextest CARGOFLAGS="--profile ci --hide-progress-bar"
279279
env:
280280
RUST_BACKTRACE: "1"
281+
- name: "`make install COMPLETIONS=n MANPAGES=n`"
282+
shell: bash
283+
run: |
284+
DESTDIR=/tmp/ make PROFILE=release COMPLETIONS=n MANPAGES=n install
285+
# Check that the utils are present
286+
test -f /tmp/usr/local/bin/tty
287+
# Check that the manpage is not present
288+
! test -f /tmp/usr/local/share/man/man1/whoami.1
289+
# Check that the completion is not present
290+
! test -f /tmp/usr/local/share/zsh/site-functions/_install
291+
! test -f /tmp/usr/local/share/bash-completion/completions/head
292+
! test -f /tmp/usr/local/share/fish/vendor_completions.d/cat.fish
293+
env:
294+
RUST_BACKTRACE: "1"
281295
- name: "`make install`"
282296
shell: bash
283297
run: |
284298
DESTDIR=/tmp/ make PROFILE=release install
299+
# Check that the utils are present
300+
test -f /tmp/usr/local/bin/tty
285301
# Check that the manpage is present
286302
test -f /tmp/usr/local/share/man/man1/whoami.1
287303
# Check that the completion is present
@@ -294,6 +310,8 @@ jobs:
294310
shell: bash
295311
run: |
296312
DESTDIR=/tmp/ make uninstall
313+
# Check that the utils are not present
314+
! test -f /tmp/usr/local/bin/tty
297315
# Check that the manpage is not present
298316
! test -f /tmp/usr/local/share/man/man1/whoami.1
299317
# Check that the completion is not present

0 commit comments

Comments
 (0)