-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend the repo script to - Enable checkout/preparation of node and java server repos - Add start commands for the node and java repos - Update the prepare command to checkout the node server per default - Update the log command to only execute the underlying git command if the repo exists - Add client subcommand for print the standalone url - Add vscode-integration subbcommand for printing the vsix path Update the playwright config to allow - Customization of the default server start command via env variable Update ci workflow - Also include tests with the java based server
- Loading branch information
Showing
7 changed files
with
268 additions
and
37 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
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,57 @@ | ||
name: E2E Playwright Tests (Multi OS) | ||
|
||
concurrency: | ||
group: e2e-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '20 18 * * 1' | ||
|
||
jobs: | ||
playwright-node: | ||
name: E2E Playwright (Node) | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-2019, ubuntu-latest, macos-14] | ||
timeout-minutes: 120 | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
THEIA_URL: 'http://localhost:3000' | ||
VSCODE_VSIX_ID: 'eclipse-glsp.workflow-vscode-example' | ||
GLSP_SERVER_DEBUG: 'true' | ||
GLSP_SERVER_PORT: '8081' | ||
GLSP_SERVER_PLAYWRIGHT_MANAGED: 'true' | ||
GLSP_WEBSOCKET_PATH: 'workflow' | ||
steps: | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: actions/setup-node@v4.0.2 | ||
with: | ||
node-version: '18' | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Prepare repos | ||
run: yarn repo prepare --protocol https | ||
- name: Set Environment Variables | ||
run: | | ||
echo "STANDALONE_URL=$(yarn -s repo client url)" >> $GITHUB_ENV | ||
echo "VSCODE_VSIX_PATH=$(yarn -s repo vscode-integration vsixPath)" >> $GITHUB_ENV | ||
echo "GLSP_SERVER_START_COMMAND=yarn repo node-server start" >> $GITHUB_ENV | ||
- name: Start theia | ||
run: yarn repo theia-integration start & | ||
- name: Run Playwright tests | ||
id: run_playwright_tests | ||
run: | | ||
if [ ${{ matrix.os }} == 'ubuntu-latest' ]; then | ||
xvfb-run -a yarn test | ||
else | ||
yarn test | ||
fi | ||
- name: Upload Playwright report | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v4.3.4 | ||
with: | ||
name: playwright-report-${{ matrix.os }} | ||
path: examples/workflow-test/playwright-report/ |
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
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
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
Oops, something went wrong.