Skip to content

Commit

Permalink
Ensure that the CI job fails if there are playwright failures
Browse files Browse the repository at this point in the history
  • Loading branch information
tortmayr committed Jul 23, 2024
1 parent 26443c2 commit bb3626a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
STANDALONE_URL: 'file://${{ github.workspace }}/examples/workflow-test/repositories/glsp-client/examples/workflow-standalone/app/diagram.html'
THEIA_URL: 'http://localhost:3000'
VSCODE_VSIX_ID: 'eclipse-glsp.workflow-vscode-example'
VSCODE_VSIX_PATH: '${{ github.workspace }}/examples/workflow-test/repositories/glsp-vscode-integration/example/workflow/extension/workflow-vscode-example-2.2.0-next.vsix'
VSCODE_VSIX_PATH: '${{ github.workspace }}/examples/workflow-test/repositories/glsp-vscode-integration/example/workflow/extension/workflow-vscode-example-2.3.0-next.vsix'
GLSP_SERVER_DEBUG: 'true'
GLSP_SERVER_PORT: '8081'
GLSP_SERVER_PLAYWRIGHT_MANAGED: 'true'
Expand All @@ -76,10 +76,13 @@ jobs:
- name: Start theia
run: yarn repo theia-integration start &
- name: Run Playwright tests
id: run_playwright_tests
run: xvfb-run -a yarn test
continue-on-error: true
- name: Upload Playwright report
uses: actions/[email protected]
with:
name: playwright-report
path: examples/workflow-test/playwright-report/
- if: steps.run_playwright_tests.outcome == 'failure'
run: exit 1

0 comments on commit bb3626a

Please sign in to comment.