forked from eclipse-glsp/glsp-client
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (53 loc) · 1.55 KB
/
e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: 'E2E'
concurrency:
group: playwright-${{ 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 }}/.../vscode-example-2.3.0-next.vsix'
GLSP_SERVER_DEBUG: 'true'
GLSP_SERVER_TYPE: 'node'
steps:
- uses: actions/[email protected]
with:
path: 'glsp-client'
- uses: actions/[email protected]
with:
repository: 'eclipse-glsp/glsp-playwright'
path: 'glsp-playwright'
- uses: actions/[email protected]
with:
node-version: '18'
- name: Install dependencies
run: |
cd glsp-client
yarn
cd ../glsp-playwright
yarn
- name: Run Playwright tests
id: run_playwright_tests
run: |
cd glsp-playwright
yarn test:standalone
- name: Upload Playwright report
uses: actions/[email protected]
if: always()
with:
name: playwright-report
path: glsp-playwright/examples/workflow-test/playwright-report/