Skip to content

Commit

Permalink
πŸ“ Changed TDrive root folder (#16)
Browse files Browse the repository at this point in the history
πŸ“ Changed TDrive root folder
  • Loading branch information
MontaGhanmy authored Apr 11, 2023
1 parent 3b3f67a commit e0615fa
Show file tree
Hide file tree
Showing 10,548 changed files with 48 additions and 48 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
14 changes: 7 additions & 7 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@ on:
pull_request:
branches: [main]
paths:
- "twake/backend/node/**"
- "tdrive/backend/node/**"

jobs:
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Prettier code style check
run: cd twake && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run lint:prettier
run: cd tdrive && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run lint:prettier
- name: Lint
run: cd twake && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run lint
run: cd tdrive && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run lint
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: build-test
run: cd twake && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run build
run: cd tdrive && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run build
- name: unit-test
run: cd twake && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run test:unit
run: cd tdrive && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run test:unit
- name: e2e-mongo-test
run: cd twake && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn -e SEARCH_DRIVER=mongodb -e DB_DRIVER=mongodb -e PUBSUB_TYPE=local node npm run test:e2e
run: cd tdrive && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn -e SEARCH_DRIVER=mongodb -e DB_DRIVER=mongodb -e PUBSUB_TYPE=local node npm run test:e2e
- name: e2e-cassandra-test
run: cd twake && docker-compose -f docker-compose.tests.yml up -d scylladb elasticsearch rabbitmq && sleep 60 && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn -e SEARCH_DRIVER=elasticsearch -e DB_DRIVER=cassandra node npm run test:e2e
run: cd tdrive && docker-compose -f docker-compose.tests.yml up -d scylladb elasticsearch rabbitmq && sleep 60 && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn -e SEARCH_DRIVER=elasticsearch -e DB_DRIVER=cassandra node npm run test:e2e

14 changes: 7 additions & 7 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [assigned, opened, synchronize, reopened]
branches: [main]
paths:
- "twake/backend/node/**"
- "tdrive/backend/node/**"

jobs:
test:
Expand All @@ -15,15 +15,15 @@ jobs:
with:
ref: "refs/pull/${{ github.event.number }}/merge"
- name: unit-test
run: cd twake && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run test:unit
run: cd tdrive && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run test:unit
- name: e2e-mongo-test
run: cd twake && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn -e SEARCH_DRIVER=mongodb -e DB_DRIVER=mongodb -e PUBSUB_TYPE=local node npm run test:e2e
run: cd tdrive && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn -e SEARCH_DRIVER=mongodb -e DB_DRIVER=mongodb -e PUBSUB_TYPE=local node npm run test:e2e
- name: generate coverage summary json
run: cd twake && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run test:merge:json
run: cd tdrive && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run test:merge:json
- name: generate coverage summary text
run: cd twake && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run test:merge:text
run: cd tdrive && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run test:merge:text
- name: Jest Coverage Comment
uses: MishaKav/jest-coverage-comment@main
with:
coverage-summary-path: twake/coverage/merged/coverage-summary.json
coverage-path: twake/coverage/coverage-report.txt
coverage-summary-path: tdrive/coverage/merged/coverage-summary.json
coverage-path: tdrive/coverage/coverage-report.txt
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ on:
pull_request:
branches: [main]
paths:
- "twake/docker/**"
- "tdrive/docker/**"

jobs:
build-frontend:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: cd twake && docker build -t tdrive/tdrive-frontend -f docker/tdrive-frontend/Dockerfile .
- run: cd tdrive && docker build -t tdrive/tdrive-frontend -f docker/tdrive-frontend/Dockerfile .

build-node:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: cd twake && docker build --target production -t docker-registry.linagora.com/tdrive/tdrive-node -f docker/tdrive-node/Dockerfile .
- run: cd tdrive && docker build --target production -t docker-registry.linagora.com/tdrive/tdrive-node -f docker/tdrive-node/Dockerfile .
6 changes: 3 additions & 3 deletions .github/workflows/publish-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
push:
branches: [main]
paths:
- "twake/docker/**"
- "twake/backend/**"
- "tdrive/docker/**"
- "tdrive/backend/**"
- ".github/workflows/**"

jobs:
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:
name: tdrive/tdrive-node
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
workdir: twake
workdir: tdrive
registry: docker-registry.linagora.com
context: .
target: production
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/publish-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ on:
push:
branches: [main]
paths:
- "twake/frontend/**"
- "twake/docker/**"
- "tdrive/frontend/**"
- "tdrive/docker/**"
- ".github/workflows/**"
pull_request:
branches: [main]
paths:
- "twake/frontend/**"
- "tdrive/frontend/**"

jobs:
build-frontend:
Expand All @@ -31,17 +31,17 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g yarn
- run: cd twake/frontend/ && yarn install
- run: cp twake/frontend/src/app/environment/environment.ts.dist twake/frontend/src/app/environment/environment.ts
- run: cd tdrive/frontend/ && yarn install
- run: cp tdrive/frontend/src/app/environment/environment.ts.dist tdrive/frontend/src/app/environment/environment.ts
- if: ${{env.FRONTEND_ENV}}
run: echo ${{ secrets.FRONTEND_ENV }} > twake/frontend/src/app/environment/environment.ts
- run: cd twake/frontend/ && yarn test
- run: cd twake/frontend/ && yarn build
run: echo ${{ secrets.FRONTEND_ENV }} > tdrive/frontend/src/app/environment/environment.ts
- run: cd tdrive/frontend/ && yarn test
- run: cd tdrive/frontend/ && yarn build
- name: Upload frontend build artifact
uses: actions/upload-artifact@v1
with:
name: frontend-build
path: twake/frontend/build/
path: tdrive/frontend/build/

publish-frontend:
# needs: build-frontend
Expand Down Expand Up @@ -69,6 +69,6 @@ jobs:
registry: docker-registry.linagora.com
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
workdir: twake
workdir: tdrive
buildoptions: "-t docker-registry.linagora.com/tdrive/tdrive-frontend -f docker/tdrive-frontend/Dockerfile"
tags: "${{ env.DOCKERTAG }},${{ env.DOCKERTAGVERSION }}"
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ docker-compose.yml
### Dev ###
/docker-data/*
/docker/data/*
/twake/docker-data/*
/twake/docker-data
/twake/backend/websockets_server/false
/tdrive/docker-data/*
/tdrive/docker-data
/tdrive/backend/websockets_server/false

### Twake specific ###
### Tdrive specific ###
/build/
/vendor/
/app/Ressources/DatabaseEncryption/.HaliteEncryptor.key
Expand Down
28 changes: 14 additions & 14 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"request": "launch",
"type": "chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}/twake/frontend/src"
"webRoot": "${workspaceFolder}/tdrive/frontend/src"
},
{
"name": "Launch & Debug on Canay",
"port": 9222,
"request": "launch",
"type": "chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}/twake/frontend/src",
"webRoot": "${workspaceFolder}/tdrive/frontend/src",
"runtimeExecutable": "canary"
},
{
Expand All @@ -24,12 +24,12 @@
"request": "launch",
"reAttach": true,
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}/twake/frontend/src",
"webRoot": "${workspaceFolder}/tdrive/frontend/src",
},
{
"name": "Debug Node Backend",
"request": "launch",
"cwd": "${workspaceFolder}/twake/backend/node/",
"cwd": "${workspaceFolder}/tdrive/backend/node/",
"runtimeArgs": [
"run",
"dev:debug"
Expand All @@ -49,23 +49,23 @@
"protocol": "inspector",
"request": "attach",
"type": "node",
"localRoot": "${workspaceFolder}/twake/backend/node/dist",
"localRoot": "${workspaceFolder}/tdrive/backend/node/dist",
"remoteRoot": "/usr/src/app/dist",
"outFiles": [
"${workspaceFolder}/twake/backend/node/dist/**/**.js"
"${workspaceFolder}/tdrive/backend/node/dist/**/**.js"
],
"skipFiles": [
"<node_internals>/**/*.js"
],
"sourceMapPathOverrides": {
"file:///usr/src/app/node_modules/*": "${workspaceRoot}/twake/backend/node/node_modules/*",
"file:///usr/src/app/node_modules/": "${workspaceRoot}/twake/backend/node/node_modules/",
"file:///usr/src/app/*": "${workspaceRoot}/twake/backend/node/dist/*",
"file:///usr/src/app/": "${workspaceRoot}/twake/backend/node/dist/",
"/usr/src/app/node_modules/*": "${workspaceRoot}/twake/backend/node/node_modules/*",
"/usr/src/app/node_modules/": "${workspaceRoot}/twake/backend/node/node_modules/",
"/usr/src/app/*": "${workspaceRoot}/twake/backend/node/dist/*",
"/usr/src/app/": "${workspaceRoot}/twake/backend/node/dist/"
"file:///usr/src/app/node_modules/*": "${workspaceRoot}/tdrive/backend/node/node_modules/*",
"file:///usr/src/app/node_modules/": "${workspaceRoot}/tdrive/backend/node/node_modules/",
"file:///usr/src/app/*": "${workspaceRoot}/tdrive/backend/node/dist/*",
"file:///usr/src/app/": "${workspaceRoot}/tdrive/backend/node/dist/",
"/usr/src/app/node_modules/*": "${workspaceRoot}/tdrive/backend/node/node_modules/*",
"/usr/src/app/node_modules/": "${workspaceRoot}/tdrive/backend/node/node_modules/",
"/usr/src/app/*": "${workspaceRoot}/tdrive/backend/node/dist/*",
"/usr/src/app/": "${workspaceRoot}/tdrive/backend/node/dist/"
},
"sourceMaps": true
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit e0615fa

Please sign in to comment.