]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Build workflow: report the status of `make check` after the test log has been uploaded. 4163/head
authorFlorian Forster <octo@collectd.org>
Fri, 24 Nov 2023 14:56:12 +0000 (15:56 +0100)
committerFlorian Forster <octo@collectd.org>
Fri, 24 Nov 2023 15:07:39 +0000 (16:07 +0100)
.github/workflows/build.yml

index 3c570e8e2516de7a7a543fad8b5da835a93781fd..3aef3cdf354b6e0bbd014fccc05645679ee19c2f 100644 (file)
@@ -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)