From d25b8680f43a14cb31647d7fe78a6a2736c95d87 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Wed, 9 Jun 2021 13:51:55 +0100 Subject: [PATCH] Added CI step to print debug logs upon CLI failure no issue - if Ghost-CLI tests fail, the CLI will put some extra debug logs in `~/.ghost/logs` - these are useful to help see what the issue is, so we should print them out if we're experiencing a failure - this commit cats the contents of the folder so we can see it in CI --- .github/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 077c18779b..d47b865e30 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -165,6 +165,10 @@ jobs: ghost install v3 --local -d $DIR ghost update -f -d $DIR --zip $GITHUB_WORKSPACE/ghost.zip + - name: Print debug logs + if: failure() + run: cat ~/.ghost/logs/*.log + - uses: daniellockyer/action-slack-build@master if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main' with: