Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLSP:1287: Add E2E workflow #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: 'E2E'

concurrency:
group: e2e-${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
playwright:
name: E2E Tests
timeout-minutes: 120
runs-on: ubuntu-latest
env:
STANDALONE_URL: 'file://${{ github.workspace }}/glsp-client/examples/workflow-standalone/app/diagram.html'
GLSP_SERVER_PORT: '8081'
GLSP_SERVER_PLAYWRIGHT_MANAGED: 'true'
GLSP_WEBSOCKET_PATH: 'workflow'
THEIA_URL: 'http://localhost:3000'
VSCODE_VSIX_ID: 'eclipse-glsp.workflow-vscode-example'
VSCODE_VSIX_PATH: '${{ github.workspace }}/glsp-vscode/example/workflow/extension/workflow-vscode-example-2.3.0-next.vsix'
GLSP_SERVER_DEBUG: 'true'

steps:
- uses: actions/[email protected]
with:
path: 'glsp-vscode'
- uses: actions/[email protected]
with:
repository: 'eclipse-glsp/glsp-playwright'
path: 'glsp-playwright'
- uses: actions/[email protected]
with:
node-version: '18'
- uses: actions/[email protected]
with:
python-version: '3.11'
- name: Build VSCode Integration
run: |
cd glsp-vscode
yarn
yarn workflow package
- name: Build Playwright
run: |
cd glsp-playwright
yarn
- name: Run Playwright tests
id: run_playwright_tests
run: |
cd glsp-playwright
yarn test:vscode
- name: Upload Playwright report
uses: actions/[email protected]
if: always()
with:
name: playwright-report
path: glsp-playwright/examples/workflow-test/playwright-report/
Loading