未验证 提交 0028a415 编写于 作者: D Dmitry Kruchinin 提交者: GitHub

CI: Add "cvat" container logs as an artifact (#3177)

上级 ada95e8f
...@@ -170,12 +170,22 @@ jobs: ...@@ -170,12 +170,22 @@ jobs:
else else
npx cypress run --headless --browser chrome --env coverage=false --spec 'cypress/integration/${{ matrix.specs }}/**/*.js' npx cypress run --headless --browser chrome --env coverage=false --spec 'cypress/integration/${{ matrix.specs }}/**/*.js'
fi 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 - name: Uploading cypress screenshots as an artifact
if: failure() if: failure()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: cypress_screenshots_${{ matrix.specs }} name: cypress_screenshots_${{ matrix.specs }}
path: ${{ github.workspace }}/tests/cypress/screenshots 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 - name: Uploading code coverage results as an artifact
if: github.ref == 'refs/heads/develop' if: github.ref == 'refs/heads/develop'
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册