-
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.
GLSP-1369: Update id locators in tests to align with workflow example (…
…#12) - Update id locators in tests - Switch to composite ts build - Update to latest dev config - Introduce `generate:index` helper script - Regenerate indices - Set version to 2.2.0 to align with other GLSP components - Update & cleanup package dependencies - Update examples/workflow-test/scripts/repositories.ts - Introduce GIthub actions workflow - Remove Jenkinsfile Co-authored-by: Haydar Metin <hmetin@eclipsesource.com>
- Loading branch information
1 parent
4e2784a
commit 1e2e0bf
Showing
47 changed files
with
3,240 additions
and
2,289 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,14 @@ | ||
name: Cancel currently running CI workflows | ||
on: | ||
workflow_run: | ||
workflows: ['CI'] | ||
types: | ||
- requested | ||
jobs: | ||
cancel: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa #v0.12.1 | ||
with: | ||
ignore_sha: true | ||
workflow_id: ${{ github.event.workflow.id }} |
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,82 @@ | ||
name: 'CI' | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: actions/setup-node@v4.0.2 | ||
with: | ||
node-version: 18.x | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Check for uncommitted changes in yarn.lock | ||
run: | | ||
if git diff --name-only | grep -q "^yarn.lock"; then | ||
echo "::error::The yarn.lock file has uncommitted changes!" | ||
exit 1 | ||
fi | ||
lint: | ||
name: Lint | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: actions/setup-node@v4.0.2 | ||
with: | ||
node-version: 18.x | ||
- name: Install | ||
run: | | ||
yarn install --ignore-scripts | ||
yarn compile | ||
- name: Create eslint json report | ||
run: | | ||
yarn lint:ci | ||
continue-on-error: true | ||
- name: Create summary | ||
run: | | ||
npm_config_yes=true npx github:10up/eslint-json-to-md#82ff16b --path ./eslint_report.json --output ./eslint_report.md | ||
cat eslint_report.md >> $GITHUB_STEP_SUMMARY | ||
playwright: | ||
name: Playwright Tests | ||
timeout-minutes: 120 | ||
runs-on: ubuntu-latest | ||
env: | ||
STANDALONE_URL: 'file://${{ github.workspace }}/examples/workflow-test/repositories/glsp-client/examples/workflow-standalone/app/diagram.html' | ||
THEIA_URL: 'http://localhost:3000' | ||
VSCODE_VSIX_ID: 'eclipse-glsp.workflow-vscode-example' | ||
VSCODE_VSIX_PATH: '${{ github.workspace }}/examples/workflow-test/repositories/glsp-vscode-integration/example/workflow/extension/workflow-vscode-example-2.2.0-next.vsix' | ||
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: Start theia | ||
run: yarn repo theia-integration start & | ||
- name: Run Playwright tests | ||
run: xvfb-run -a yarn test | ||
continue-on-error: true | ||
- name: Upload Playwright report | ||
uses: actions/upload-artifact@v4.3.4 | ||
with: | ||
name: playwright-report | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: 'Publish next' | ||
on: | ||
workflow_run: | ||
workflows: ['CI'] | ||
types: | ||
- completed | ||
workflow_dispatch: | ||
|
||
permissions: | ||
id-token: write | ||
jobs: | ||
publish: | ||
name: Build & Publish | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
if: github.event_name == 'workflow_dispatch' || (github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main') | ||
env: | ||
changes: true | ||
steps: | ||
- uses: actions/checkout@v4.1.7 | ||
with: | ||
# To fetch all history for all branches and tags. | ||
# Required for lerna to determine the version of the next package. | ||
fetch-depth: 0 | ||
ref: ${{ github.event.workflow_run.head_commit.id || github.sha }} | ||
- name: Check for changes in "packages" or "examples" directory | ||
id: check_changes | ||
run: | | ||
if git diff --name-only HEAD^ HEAD | grep -qE '^(packages|examples)'; then | ||
echo "changes=true" >> $GITHUB_ENV | ||
else | ||
echo "changes=false" >> $GITHUB_ENV | ||
fi | ||
if: github.event_name == 'workflow_run' | ||
- uses: actions/setup-node@v4.0.2 | ||
with: | ||
node-version: 18.x | ||
registry-url: 'https://registry.npmjs.org' | ||
if: env.changes == 'true' | ||
- name: Build | ||
run: yarn --skip-integrity-check --network-timeout 100000 | ||
if: env.changes == 'true' | ||
- name: Publish NPM | ||
run: yarn publish:next | ||
env: | ||
NPM_CONFIG_PROVENANCE: 'true' | ||
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }} | ||
if: env.changes == 'true' |
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 |
---|---|---|
|
@@ -16,5 +16,3 @@ examples/workflow-test/playwright/.storage/*.json | |
*.vsix | ||
!*.env.example | ||
*.env | ||
|
||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.