diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6158fb59d..c2ab4d407 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,6 +59,27 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload failed logs + uses: actions/upload-artifact@v2 + if: ${{ failure() && matrix.os == 'ubuntu-latest' }} + with: + name: logs-ubuntu + path: build/testclusters/integTest-*/logs/* + + - name: Upload failed logs + uses: actions/upload-artifact@v2 + if: ${{ failure() && matrix.os == 'macos-latest' }} + with: + name: logs-mac + path: build/testclusters/integTest-*/logs/* + + - name: Upload failed logs + uses: actions/upload-artifact@v2 + if: ${{ failure() && matrix.os == 'windows-latest' }} + with: + name: logs-windows + path: build\testclusters\integTest-*\logs\* + - name: Upload Artifacts uses: actions/upload-artifact@v1 with: diff --git a/.github/workflows/multi-node-test-workflow.yml b/.github/workflows/multi-node-test-workflow.yml index 1cab69173..d7c4a1a0c 100644 --- a/.github/workflows/multi-node-test-workflow.yml +++ b/.github/workflows/multi-node-test-workflow.yml @@ -28,3 +28,9 @@ jobs: uses: actions/checkout@v2 - name: Run integration tests with multi node config run: ./gradlew integTest -PnumNodes=3 + - name: Upload failed logs + uses: actions/upload-artifact@v2 + if: failure() + with: + name: logs + path: build/testclusters/integTest-*/logs/* \ No newline at end of file