]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
GitHub actions: continue on error and upload test logs.
authorFlorian Forster <octo@collectd.org>
Thu, 23 Nov 2023 13:58:54 +0000 (14:58 +0100)
committerFlorian Forster <octo@collectd.org>
Thu, 23 Nov 2023 13:58:54 +0000 (14:58 +0100)
When `make check` fails, continue so that the "upload logs" step is
performed. Use the `upload-artifact` action instead of just `cat`ing the
file.

.github/workflows/build.yml

index 46438a761ebc6ef32b7115004e85809a62f0dc79..cf9d17aa9e40d60b0984321f66ef61d0544de4d8 100644 (file)
@@ -59,9 +59,12 @@ jobs:
       run: make $MAKEFLAGS
     - name: Run make check
       run: make $MAKEFLAGS check
+      continue-on-error: true
     - name: Dump test logs
-      run: |
-          cat ./test-suite.log || true
+      uses: actions/upload-artifact@v3
+      with:
+        name: Test suite log
+        path: test-suite.log
     - name: Install bzip2
       run: |
         yum install -y bzip2 || apt install -y bzip2
@@ -106,12 +109,13 @@ jobs:
     - name: Build collectd
       run: make $MAKEFLAGS
     - name: Run make check
-      # Make check is failing on a few newer distros, temporarily mark it as optional until that is resolved 
-      continue-on-error: true
       run: make $MAKEFLAGS check
+      continue-on-error: true
     - name: Dump test logs
-      run: |
-          cat ./test-suite.log || true
+      uses: actions/upload-artifact@v3
+      with:
+        name: Test suite log
+        path: test-suite.log
     - name: Install bzip2
       run: |
         yum install -y bzip2 || apt install -y bzip2