From 015d5d6adadcc3d7a117aa44cf09ac5eca91e7aa Mon Sep 17 00:00:00 2001 From: ashish Date: Sun, 7 Feb 2021 14:03:56 +0530 Subject: [PATCH 1/4] helper script updated --- test/resources/scripts/pr_helper.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/resources/scripts/pr_helper.sh b/test/resources/scripts/pr_helper.sh index b3738da..f303c78 100644 --- a/test/resources/scripts/pr_helper.sh +++ b/test/resources/scripts/pr_helper.sh @@ -3,15 +3,17 @@ PR=159 # checkout pr gh pr checkout $PR +git pull origin release/release-v0.x # npm install npm install - +git push # GIT PUSH and then checks ( validate ) # watching checks running watch -n 3 "gh pr checks $PR" -#MERGE PR + +#MERGE PR, delete branch and merge in place of other options gh pr merge $PR -d -m From 7d10c44d65cfbf2c245e10d569f0f145afa776fc Mon Sep 17 00:00:00 2001 From: ashish Date: Sun, 7 Feb 2021 15:44:38 +0530 Subject: [PATCH 2/4] [UTILITIES] : helper script added --- test/resources/scripts/pr_helper.sh | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/test/resources/scripts/pr_helper.sh b/test/resources/scripts/pr_helper.sh index f303c78..51ac0ef 100644 --- a/test/resources/scripts/pr_helper.sh +++ b/test/resources/scripts/pr_helper.sh @@ -4,16 +4,25 @@ PR=159 gh pr checkout $PR git pull origin release/release-v0.x - # npm install npm install -git push +#COMMIT + +git push # GIT PUSH and then checks ( validate ) # watching checks running -watch -n 3 "gh pr checks $PR" - - -#MERGE PR, delete branch and merge in place of other options +#watch -n 3 "gh pr checks $PR" +watch -n 3 " +gh pr checks $PR; echo '---------------'; +echo 'PENDING:' +gh pr checks $PR | grep -o pend | wc -w; +echo +echo 'PASSED:' +gh pr checks $PR | grep -o pass | wc -w; +echo +echo 'FAILED:' +gh pr checks $PR | grep -o fail | wc -w; +"; +#MERGE PR gh pr merge $PR -d -m - From 8a95e0b149e9da851b183a56f7aee7fe4d98f3f0 Mon Sep 17 00:00:00 2001 From: ashish Date: Sun, 7 Feb 2021 16:02:52 +0530 Subject: [PATCH 3/4] [cdt-177] - Adding new version for CI --- .github/workflows/nodejs.yml | 2 +- .github/workflows/npmpublish.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 1863f03..db96454 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [10.x, 11.x, 12.x, 13.x] + node-version: [10.x, 11.x, 12.x, 13.x, 14.x, 15.x] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 8d2052f..57e93c0 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -6,6 +6,7 @@ on: - v0.1.* - v0.2.* - v0.*.* + - v1.*.* jobs: build: From 37b0271ea86f8ae58b25f8819d374c267e85b204 Mon Sep 17 00:00:00 2001 From: ashish Date: Sun, 7 Feb 2021 19:34:05 +0530 Subject: [PATCH 4/4] [cdt-177] - issue fixed, for writeFileSync() method --- src/utilities/utilities.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utilities/utilities.ts b/src/utilities/utilities.ts index 34c3c3a..f9d3dc7 100644 --- a/src/utilities/utilities.ts +++ b/src/utilities/utilities.ts @@ -46,7 +46,7 @@ export default class Utilities { else Logger.warn(thisRef, `File already exists: ${chalk.green(filePath)}, ${chalk.yellow('overriding content')}`) // this will output error and exit command - fs.writeFileSync(filePath, string) + fs.writeFileSync(filePath, string.toString()) if (string !== '') // this condition comes for truncating Logger.success(thisRef, `output written to file: ${chalk.green(filePath)}`) // this will output error and exit command