From aef5d5777645665be36c0a7d4797834fd5073b84 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Thu, 5 Mar 2026 01:32:00 +0100 Subject: [PATCH] Upload test logs for debugging CI failures (#858) The CI often fails with cryptic errors that would be much easier to debug if the logs from Factorio was provided. Upload the cluster log that was written during the tests which includes Factorio logs so that these can be inspected after a test failure. --- .github/workflows/node.js.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 3ba681ab..e029119d 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -40,6 +40,12 @@ jobs: with: files: ./coverage/lcov.info token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload test logs for debugging + if: ${{ !cancelled() }} + uses: actions/upload-artifact@v4 + with: + name: logs-${{ matrix.node-version }}-${{ matrix.factorio-version }} + path: temp/test/logs lint: runs-on: ubuntu-latest