From 991e2933997595bcebb3a74eece316e1130e11c4 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Mon, 6 Mar 2023 11:38:16 -0500 Subject: [PATCH] ci: Separate build and test in github workflows. Currently the "Build and test" step of the c-i workflow does both build a binary and test the binary. Make 2 sections 'Build' and 'Test'. This way you can know which of the two sections failed, and also see how long each portion took. Signed-off-by: Scott Moser --- .github/workflows/build.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 914c54d0..dbda2f61 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -42,7 +42,13 @@ jobs: (cd /tmp && git clone https://github.com/AgentD/squashfs-tools-ng && cd squashfs-tools-ng && ./autogen.sh && ./configure --prefix=/usr && make -j2 && sudo make -j2 install && sudo ldconfig -v) (cd /tmp && git clone https://github.com/anuvu/squashfs && cd squashfs && make && sudo cp squashtool/squashtool /usr/bin) - if: github.event_name != 'release' || github.event.action != 'published' - name: Build and test + name: Build + run: | + make stacker + env: + REGISTRY_URL: localhost:5000 + - if: github.event_name != 'release' || github.event.action != 'published' + name: Test run: | make check PRIVILEGE_LEVEL=${{ matrix.privilege-level }} env: