Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devtools week che dogfooding test development #22282

Merged
1 change: 1 addition & 0 deletions .che/che-editor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
id: che-incubator/che-code/insiders
52 changes: 52 additions & 0 deletions .devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@
schemaVersion: 2.2.0
metadata:
name: che
language: typescript
attributes:
controller.devfile.io/scc: container-build
controller.devfile.io/storage-type: per-workspace
projects:
- name: che
git:
remotes:
origin: 'https://github.com/eclipse/che.git'
checkoutFrom:
remote: origin
revision: main
components:
- name: devtools
container:
Expand All @@ -17,6 +29,11 @@ components:
memoryRequest: 256Mi
cpuLimit: '2'
cpuRequest: 30m
mountSources: true
sourceMapping: /projects
env:
- name: KUBEDOCK_ENABLED
value: 'true'
commands:
- id: update-contributing
exec:
Expand All @@ -26,3 +43,38 @@ commands:
exec:
commandLine: '.repositories-update-contributing.sh IN_DOCKER'
component: devtools
- id: tests-update-dependencies
exec:
commandLine: >-
cd tests/e2e &&
echo "Installing/Updating nvm" &&
curl -so- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash &&
export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&
nvm --version &&
echo "Updating nodejs" &&
nvm install lts/hydrogen && nvm alias default lts/hydrogen && nvm use default &&
echo "Updating npm" &&
npm install -g npm &&
echo "Installing test dependencies" &&
rm -rf package-lock.json &&
npm install &&
npm uninstall chromedriver && npm install chromedriver --save-dev &&
cd ../../
component: devtools
- id: tests-lint-project
exec:
commandLine: >-
cd tests/e2e &&
npm run lint
component: devtools
- id: tests-build-tests
exec:
commandLine: >-
cd tests/e2e &&
npm run tsc
component: devtools
- id: tests-happy-path-remote
exec:
commandLine: >-
echo "TODO: Start pod in dogfooding user namespace and collect logs"
component: devtools