-
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.
Co-authored-by: Philip Langer <[email protected]>
- Loading branch information
Showing
28 changed files
with
2,690 additions
and
2,718 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,6 @@ | ||
# Eclipse GLSP Playwright Changelog | ||
|
||
## [v2.0.0 - 24/10/2023]((https://github.com/eclipse-glsp/glsp-playwright/releases/tag/v2.0.0)) | ||
|
||
Inception of the GLSP Playwright project. | ||
This project provides a Playwright-based page object framework for testing GLSP diagrams in different tool platform integration scenarios. |
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,149 @@ | ||
def kubernetes_config = """ | ||
apiVersion: v1 | ||
kind: Pod | ||
spec: | ||
containers: | ||
- name: node | ||
image: eclipseglsp/ci:alpine-v5.0 | ||
tty: true | ||
resources: | ||
limits: | ||
memory: "2Gi" | ||
cpu: "1" | ||
requests: | ||
memory: "2Gi" | ||
cpu: "1" | ||
command: | ||
- cat | ||
volumeMounts: | ||
- mountPath: "/home/jenkins" | ||
name: "jenkins-home" | ||
readOnly: false | ||
- mountPath: "/.yarn" | ||
name: "yarn-global" | ||
readOnly: false | ||
- mountPath: "/.cache" | ||
name: "playwright-cache" | ||
readOnly: false | ||
volumes: | ||
- name: "jenkins-home" | ||
emptyDir: {} | ||
- name: "yarn-global" | ||
emptyDir: {} | ||
- name: "playwright-cache" | ||
emptyDir: {} | ||
""" | ||
|
||
pipeline { | ||
agent { | ||
kubernetes { | ||
label 'glsp-theia-agent-pod' | ||
yaml kubernetes_config | ||
} | ||
} | ||
options { | ||
buildDiscarder logRotator(numToKeepStr: '15') | ||
} | ||
|
||
environment { | ||
YARN_CACHE_FOLDER = "${env.WORKSPACE}/yarn-cache" | ||
SPAWN_WRAP_SHIM_ROOT = "${env.WORKSPACE}" | ||
EMAIL_TO= "[email protected]" | ||
} | ||
|
||
stages { | ||
stage('Build') { | ||
steps { | ||
timeout(30) { | ||
container('node') { | ||
sh "yarn install --unsafe-perm" | ||
script { | ||
// Fail the step if there are uncommited changes to the yarn.lock file | ||
if (sh(returnStatus: true, script: 'git diff --name-only | grep -q "^yarn.lock"') == 0) { | ||
echo 'The yarn.lock file has uncommited changes!' | ||
error 'The yarn.lock file has uncommited changes!' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Codechecks (ESLint)'){ | ||
steps { | ||
container('node') { | ||
timeout(30){ | ||
sh "yarn lint:ci" | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Deploy (main only)') { | ||
when { | ||
allOf { | ||
branch 'main' | ||
expression { | ||
/* Only trigger the deployment job if the changeset contains changes in | ||
the `packages` or `examples/workflow-theia` directory */ | ||
sh(returnStatus: true, script: 'git diff --name-only HEAD^ | grep -q "^packages\\|examples/workflow-test"') == 0 | ||
} | ||
} | ||
} | ||
steps { | ||
container('node') { | ||
timeout(30) { | ||
withCredentials([string(credentialsId: 'npmjs-token', variable: 'NPM_AUTH_TOKEN')]) { | ||
sh 'printf "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}\n" >> $WORKSPACE/.npmrc' | ||
} | ||
sh 'git config user.email "[email protected]"' | ||
sh 'git config user.name "eclipse-glsp-bot"' | ||
sh 'yarn publish:next' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
post { | ||
success { | ||
// Record & publish ESLint issues | ||
recordIssues enabledForFailure: true, publishAllIssues: true, aggregatingResults: true, | ||
tools: [esLint(pattern: 'node_modules/**/*/eslint.xml')], | ||
qualityGates: [[threshold: 1, type: 'TOTAL', unstable: true]] | ||
} | ||
failure { | ||
script { | ||
if (env.BRANCH_NAME == 'main') { | ||
echo "Build result FAILURE: Send email notification to ${EMAIL_TO}" | ||
emailext attachLog: true, | ||
from: '[email protected]', | ||
body: 'Job: ${JOB_NAME}<br>Build Number: ${BUILD_NUMBER}<br>Build URL: ${BUILD_URL}', | ||
mimeType: 'text/html', subject: 'Build ${JOB_NAME} (#${BUILD_NUMBER}) FAILURE', to: "${EMAIL_TO}" | ||
} | ||
} | ||
} | ||
unstable { | ||
script { | ||
if (env.BRANCH_NAME == 'main') { | ||
echo "Build result UNSTABLE: Send email notification to ${EMAIL_TO}" | ||
emailext attachLog: true, | ||
from: '[email protected]', | ||
body: 'Job: ${JOB_NAME}<br>Build Number: ${BUILD_NUMBER}<br>Build URL: ${BUILD_URL}', | ||
mimeType: 'text/html', subject: 'Build ${JOB_NAME} (#${BUILD_NUMBER}) UNSTABLE', to: "${EMAIL_TO}" | ||
} | ||
} | ||
} | ||
fixed { | ||
script { | ||
if (env.BRANCH_NAME == 'main') { | ||
echo "Build back to normal: Send email notification to ${EMAIL_TO}" | ||
emailext attachLog: false, | ||
from: '[email protected]', | ||
body: 'Job: ${JOB_NAME}<br>Build Number: ${BUILD_NUMBER}<br>Build URL: ${BUILD_URL}', | ||
mimeType: 'text/html', subject: 'Build ${JOB_NAME} back to normal (#${BUILD_NUMBER})', to: "${EMAIL_TO}" | ||
} | ||
} | ||
} | ||
} | ||
} |
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
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
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
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
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
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
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.