-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github actions workflow for E2E testing with glsp-playwright Part of eclipse-glsp/glsp#1287
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
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-test/repositories/glsp-client/examples/workflow-standalone/app/diagram.html' | ||
GLSP_SERVER_PORT: '8081' | ||
GLSP_SERVER_PLAYWRIGHT_MANAGED: 'true' | ||
GLSP_WEBSOCKET_PATH: 'workflow' | ||
|
||
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 | ||
run: | | ||
cd glsp-playwright | ||
yarn test:standalone | ||
continue-on-error: true | ||
- name: Upload Playwright report | ||
uses: actions/[email protected] | ||
with: | ||
name: playwright-report | ||
path: glsp-client/examples/workflow-test/playwright-report/ |