Skip to content

Commit 605c761

Browse files
committed
GLSP:1287: Add E2E workflow
1 parent 9122825 commit 605c761

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

.github/workflows/e2e.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: 'E2E'
2+
3+
concurrency:
4+
group: e2e-${{ github.ref }}
5+
cancel-in-progress: true
6+
on:
7+
workflow_dispatch:
8+
push:
9+
branches: [master]
10+
pull_request:
11+
branches: [master]
12+
13+
jobs:
14+
playwright:
15+
name: E2E Tests
16+
timeout-minutes: 120
17+
runs-on: ubuntu-latest
18+
env:
19+
STANDALONE_URL: 'file://${{ github.workspace }}/glsp-client/examples/workflow-standalone/app/diagram.html'
20+
GLSP_SERVER_PORT: '8081'
21+
GLSP_SERVER_PLAYWRIGHT_MANAGED: 'true'
22+
GLSP_WEBSOCKET_PATH: 'workflow'
23+
THEIA_URL: 'http://localhost:3000'
24+
VSCODE_VSIX_ID: 'eclipse-glsp.workflow-vscode-example'
25+
VSCODE_VSIX_PATH: '${{ github.workspace }}/glsp-vscode/example/workflow/extension/workflow-vscode-example-2.3.0-next.vsix'
26+
GLSP_SERVER_DEBUG: 'true'
27+
28+
steps:
29+
- uses: actions/checkout@v4.1.7
30+
with:
31+
path: 'glsp-vscode'
32+
- uses: actions/checkout@v4.1.7
33+
with:
34+
repository: 'eclipse-glsp/glsp-playwright'
35+
path: 'glsp-playwright'
36+
- uses: actions/setup-node@v4.0.2
37+
with:
38+
node-version: '18'
39+
- uses: actions/setup-python@v5.1.0
40+
with:
41+
python-version: '3.11'
42+
- name: Build VSCode Integration
43+
run: |
44+
cd glsp-vscode
45+
yarn
46+
yarn workflow package
47+
- name: Build Playwright
48+
run: |
49+
cd glsp-playwright
50+
yarn
51+
- name: Run Playwright tests
52+
id: run_playwright_tests
53+
run: |
54+
cd glsp-playwright
55+
yarn test:vscode
56+
- name: Upload Playwright report
57+
uses: actions/upload-artifact@v4.3.4
58+
if: always()
59+
with:
60+
name: playwright-report
61+
path: glsp-playwright/examples/workflow-test/playwright-report/

0 commit comments

Comments
 (0)