From 0ef2209028a1067f5753f9dd5e5cd8ebc28823d3 Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Mon, 26 Feb 2024 10:31:24 +0000 Subject: [PATCH 1/3] Get logs on success or failure --- .github/workflows/npm-publish-github-packages.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index 949ca9f..60adf47 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -1,5 +1,5 @@ -name: Node.js Package +name: Test AppSync utils on: push: @@ -73,9 +73,11 @@ jobs: set -x curl --connect-timeout 30 --retry 10 --retry-delay 6 -X POST -H "x-api-key:$TEST_API_KEY" -H "Accept:application/json" -H "Content-Type:application/json" $TEST_URL -d '{"query": "query { foo }"}' - name: Get the LocalStack logs + if: success() || failure() run: | localstack logs | gzip > logs.txt.gz - name: Upload the logs as an artifact + if: success() || failure() uses: actions/upload-artifact@v3 with: name: ls-logs-${{ github.run_number }} From 62d5086ae723aacfa4ac39ada2752482f8829f77 Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Mon, 26 Feb 2024 13:06:29 +0000 Subject: [PATCH 2/3] Print localstack logs to the console --- .github/workflows/npm-publish-github-packages.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index 60adf47..b5d6e11 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -84,3 +84,7 @@ jobs: path: | logs.txt.gz retention-days: 7 + - name: Print the LocalStack logs + if: success() || failure() + run: | + gunzip -c logs.txt.gz From 318b9e96b70cdb30e04ca54fa9e7cb1fd6501b31 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Feb 2024 09:35:50 +0000 Subject: [PATCH 3/3] Bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/npm-publish-github-packages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index b5d6e11..ee01c41 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -44,7 +44,7 @@ jobs: localstack-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Start LocalStack uses: LocalStack/setup-localstack@v0.1.2 with: