CI: build and run unit tests

Run `make check` after the project is built in every runner.

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
This commit is contained in:
Iker Pedrosa
2023-09-29 09:24:01 +02:00
committed by Iker Pedrosa
parent 015448b049
commit 0fc697a4b1
4 changed files with 9 additions and 5 deletions
+2 -1
View File
@@ -9,7 +9,7 @@ RUN export DEBIAN_PRIORITY=critical \
RUN apt-get update -y \
&& apt-get dist-upgrade -y
RUN apt-get build-dep shadow -y
RUN apt-get install libbsd-dev pkgconf -y
RUN apt-get install libbsd-dev libcmocka-dev pkgconf -y
COPY ./ /usr/local/src/shadow/
WORKDIR /usr/local/src/shadow/
@@ -17,6 +17,7 @@ WORKDIR /usr/local/src/shadow/
RUN ./autogen.sh --without-selinux --enable-man --with-yescrypt
RUN make -kj4 || true
RUN make
RUN make check
RUN make install
FROM scratch AS export