From a4d2f63f30bdcd01bec4c394ffd4fde43fcb862c Mon Sep 17 00:00:00 2001 From: Geoffrey Hendrey Date: Sun, 1 Oct 2023 09:28:22 -0700 Subject: [PATCH] capture test logs in git --- .github/workflows/test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index db7bce14..3b739f6c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,3 +26,10 @@ jobs: - name: Run Jest tests run: npm test + + - name: Upload npm debug log on failure + if: failure() + uses: actions/upload-artifact@v2 + with: + name: npm-debug-log + path: /home/runner/.npm/_logs/*-debug.log