-
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.
- Loading branch information
Showing
7 changed files
with
135 additions
and
154 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,77 @@ | ||
name: 'CI' | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
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 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
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 | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: true | ||
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/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: '18' | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Prepare repos | ||
run: yarn repo prepare | ||
- name: Run Playwright tests | ||
run: yarn test | ||
- name: Upload Playwright report | ||
uses: actions/[email protected] | ||
with: | ||
name: playwright-report | ||
path: glsp-playwright/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,47 @@ | ||
name: 'Publish next' | ||
on: | ||
workflow_run: | ||
workflows: ['CI'] | ||
types: | ||
- completed | ||
workflow_dispatch: | ||
|
||
permissions: | ||
id-token: write | ||
jobs: | ||
build: | ||
name: Build & Release | ||
runs-on: ubuntu-latest | ||
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/[email protected] | ||
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/[email protected] | ||
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
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
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