]> git.openstreetmap.org Git - chef.git/commitdiff
Capture additional github action diagnostics on failure
authorGrant Slater <github@firefishy.com>
Fri, 10 May 2024 23:58:19 +0000 (00:58 +0100)
committerGrant Slater <github@firefishy.com>
Sat, 11 May 2024 00:02:20 +0000 (01:02 +0100)
.github/workflows/test-kitchen.yml

index dcd9e3223d147ed5e9a368ae9f21995b82fadfc4..bbcae2b54509053cc9e4b01093f3f7ce9219f13d 100644 (file)
@@ -146,5 +146,8 @@ jobs:
     - name: Run kitchen test ${{ matrix.suite }}-${{ matrix.os }}
       run: bundle exec kitchen test ${{ matrix.suite }}-${{ matrix.os }}
     - name: Gather journal output
-      run: bundle exec kitchen exec ${{ matrix.suite }}-${{ matrix.os }} -c journalctl --since=yesterday
+      run: |
+        bundle exec kitchen exec ${{ matrix.suite }}-${{ matrix.os }} -c "journalctl --since=yesterday"
+        bundle exec kitchen exec ${{ matrix.suite }}-${{ matrix.os }} -c "networkctl status --all"
+        bundle exec kitchen exec ${{ matrix.suite }}-${{ matrix.os }} -c "resolvectl status" || true
       if: ${{ failure() }}