Create issue on test failure

This commit is contained in:
Alexandru Dima
2020-12-14 10:24:28 +01:00
parent 707afc26d6
commit b742a4c8ea

View File

@@ -427,14 +427,37 @@ jobs:
run: yarn concurrently --max_old_space_size=4095 --names "compile,electron,playwright,builtin-extensions" "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js compile" "yarn electron x64" "node ./node_modules/playwright/install.js" "yarn download-builtin-extensions"
- name: Run Unit Tests (Electron)
id: electron-unit-tests
run: DISPLAY=:10 ./scripts/test.sh
- name: Run Unit Tests (Browser)
id: browser-unit-tests
run: DISPLAY=:10 yarn test-browser --browser chromium
- name: Run Integration Tests (Electron)
id: electron-integration-tests
run: DISPLAY=:10 ./scripts/test-integration.sh
- name: Create Issue on Unit Test Failure
uses: nashmaniac/create-issue-action@v1.1
if: ${{ steps.electron-unit-tests.outputs.status == 'failure' || steps.browser-unit-tests.outputs.status == 'failure' }}
with:
title: Unit Test Failed
token: ${{secrets.GITHUB_TOKEN}}
assignees: ${{github.actor}}
labels: unit-test-failure
body: Running unit tests failed for commit ${{github.sha}}. Please see https://github.com/microsoft/vscode/runs/${{GITHUB_RUN_ID}}
- name: Create Issue on Integration Test Failure
uses: nashmaniac/create-issue-action@v1.1
if: ${{ steps.electron-integration-tests.outputs.status == 'failure' && steps.electron-unit-tests.outputs.status != 'failure' && steps.browser-unit-tests.outputs.status != 'failure' }}
with:
title: Integration Test Failed
token: ${{secrets.GITHUB_TOKEN}}
assignees: ${{github.actor}}
labels: integration-test-failure
body: Running integration tests failed for commit ${{github.sha}}. Please see https://github.com/microsoft/vscode/runs/${{GITHUB_RUN_ID}}
windows:
name: Windows
runs-on: windows-latest