From 25fe137b4585ea2a28aad213bd17b460bb27fa31 Mon Sep 17 00:00:00 2001 From: Oscar Franco Date: Thu, 19 Oct 2023 12:53:59 +0200 Subject: [PATCH] Add an attempt to log errors on github actions --- .github/workflows/e2ePerformanceTests.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/e2ePerformanceTests.yml b/.github/workflows/e2ePerformanceTests.yml index 4c24f6a73b2a..d6d32b6c6509 100644 --- a/.github/workflows/e2ePerformanceTests.yml +++ b/.github/workflows/e2ePerformanceTests.yml @@ -167,6 +167,7 @@ jobs: - name: Schedule AWS Device Farm test run on main branch uses: realm/aws-devicefarm/test-application@7b9a91236c456c97e28d384c9e476035d5ea686b + id: schedule-awsdf-main with: name: App E2E Performance Regression Tests project_arn: ${{ secrets.AWS_PROJECT_ARN }} @@ -180,8 +181,16 @@ jobs: test_spec_type: APPIUM_NODE_TEST_SPEC remote_src: false file_artifacts: Customer Artifacts.zip + log_artifacts: debug.log cleanup: true + - name: Print logs if run failed + if: failure() + run: | + echo ${{ steps.schedule-awsdf-main.outputs.data }} + unzip "Customer Artifacts.zip" -d mainResults + cat ./mainResults/Host_Machine_Files/\$WORKING_DIRECTORY/debug.log + - name: Unzip AWS Device Farm main results run: unzip "Customer Artifacts.zip" -d mainResults