From faea305ef55bd0da31b383ed3aea3868b7ecc8a7 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 24 Nov 2023 15:56:12 +0100 Subject: [PATCH] Build workflow: report the status of `make check` after the test log has been uploaded. --- .github/workflows/build.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3c570e8e25..3aef3cdf35 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,13 +52,17 @@ jobs: - name: Build collectd run: make -j$(nproc) -sk - name: Run make check - run: make -j$(nproc) -sk check + run: | + make $MAKEFLAGS check + echo "$?" >make-check.status continue-on-error: true - name: Dump test logs uses: actions/upload-artifact@v3 with: name: ${{ matrix.container_tag }} test log path: test-suite.log + - name: Report check status + run: exit $(< make-check.status) experimental: runs-on: ubuntu-20.04 @@ -96,10 +100,14 @@ jobs: - name: Build collectd run: make -j$(nproc) -sk - name: Run make check - run: make -j$(nproc) -sk check + run: | + make $MAKEFLAGS check + echo "$?" >make-check.status continue-on-error: true - name: Dump test logs uses: actions/upload-artifact@v3 with: name: ${{ matrix.container_tag }} test log path: test-suite.log + - name: Report check status + run: exit $(< make-check.status)