From 0028a415eda3894af65e50ed0b7c3a413103844d Mon Sep 17 00:00:00 2001 From: Dmitry Kruchinin <33020454+dvkruchinin@users.noreply.github.com> Date: Fri, 14 May 2021 06:10:18 +0300 Subject: [PATCH] CI: Add "cvat" container logs as an artifact (#3177) --- .github/workflows/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f0bd291c..3ca8e06c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -170,12 +170,22 @@ jobs: else npx cypress run --headless --browser chrome --env coverage=false --spec 'cypress/integration/${{ matrix.specs }}/**/*.js' fi + - name: Creating a log file from "cvat" container logs + if: failure() + run: | + docker logs cvat > ${{ github.workspace }}/tests/cvat_${{ matrix.specs }}.log - name: Uploading cypress screenshots as an artifact if: failure() uses: actions/upload-artifact@v2 with: name: cypress_screenshots_${{ matrix.specs }} path: ${{ github.workspace }}/tests/cypress/screenshots + - name: Uploading "cvat" container logs as an artifact + if: failure() + uses: actions/upload-artifact@v2 + with: + name: cvat_container_logs + path: ${{ github.workspace }}/tests/cvat_${{ matrix.specs }}.log - name: Uploading code coverage results as an artifact if: github.ref == 'refs/heads/develop' uses: actions/upload-artifact@v2