From 10c061e24f2be41cea566ecda230e95052740fc3 Mon Sep 17 00:00:00 2001 From: ashish Date: Thu, 21 May 2020 00:50:36 +0530 Subject: [PATCH 01/10] [circleci-issue] - log added Signed-off-by: Ashish Patel Signed-off-by: ashish --- test/commands/hash.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/commands/hash.test.ts b/test/commands/hash.test.ts index 2431818..797399f 100644 --- a/test/commands/hash.test.ts +++ b/test/commands/hash.test.ts @@ -110,7 +110,7 @@ describe('hash', () => { .stdout() .command(['hash', '-f', 'test/resources/test.txt', '-t', 'sha512', '--output', 'test/resources/output/out.txt']) .it("File Hashing, output to a file", ctx => { - expect(ctx.stdout).to.contain('✔ success output written to file') + expect(ctx.stdout).to.contain('✔ sccess output written to file') }) //file input - file not found From 8cd3f960243cef98cc27e00805d96e5a965ee357 Mon Sep 17 00:00:00 2001 From: ashish Date: Thu, 21 May 2020 00:53:56 +0530 Subject: [PATCH 02/10] Revert "[circleci-issue] - log added Signed-off-by: Ashish Patel " This reverts commit 10c061e2 Signed-off-by: ashish --- test/commands/hash.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/commands/hash.test.ts b/test/commands/hash.test.ts index 797399f..2431818 100644 --- a/test/commands/hash.test.ts +++ b/test/commands/hash.test.ts @@ -110,7 +110,7 @@ describe('hash', () => { .stdout() .command(['hash', '-f', 'test/resources/test.txt', '-t', 'sha512', '--output', 'test/resources/output/out.txt']) .it("File Hashing, output to a file", ctx => { - expect(ctx.stdout).to.contain('✔ sccess output written to file') + expect(ctx.stdout).to.contain('✔ success output written to file') }) //file input - file not found From 0c1ed9c804b175967030c4d4bbbc4135be451baa Mon Sep 17 00:00:00 2001 From: ashish Date: Thu, 21 May 2020 00:54:59 +0530 Subject: [PATCH 03/10] [circleci-issue] - disabling circleci Signed-off-by: Ashish Patel Signed-off-by: ashish --- .circleci/{config.yml => config_disablingduetoissue.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .circleci/{config.yml => config_disablingduetoissue.yml} (100%) diff --git a/.circleci/config.yml b/.circleci/config_disablingduetoissue.yml similarity index 100% rename from .circleci/config.yml rename to .circleci/config_disablingduetoissue.yml From 1faebc00a62c7c163490cbd23f7c6bc01c46c35d Mon Sep 17 00:00:00 2001 From: ashish Date: Thu, 21 May 2020 01:03:19 +0530 Subject: [PATCH 04/10] [circleci-issue] - removed circleci from README.md Signed-off-by: Ashish Patel Signed-off-by: ashish --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index ba7818b..82886bd 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ CLI for Developers [![GithubCI](https://github.com/codingtools/cdt/workflows/GithubCI/badge.svg)](https://github.com/codingtools/cdt/actions?query=workflow%3AGithubCI) -[![CircleCI](https://circleci.com/gh/codingtools/cdt/tree/release%2Frelease-v0.x.svg?style=shield)](https://circleci.com/gh/codingtools/cdt/tree/release%2Frelease-v0.x) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/82d29e2a902a4c338228d636f290d9cd)](https://app.codacy.com/gh/codingtools/cdt?utm_source=github.com&utm_medium=referral&utm_content=codingtools/cdt&utm_campaign=Badge_Grade_Dashboard) [![codecov](https://codecov.io/gh/codingtools/cdt/branch/release%2Frelease-v0.1/graph/badge.svg)](https://codecov.io/gh/codingtools/cdt) [![Version](https://img.shields.io/npm/v/@codingtools/cdt)](https://npmjs.org/package/@codingtools/cdt) From 8dfc5bcaa0640dcd995cb0d94b8a64af99c11456 Mon Sep 17 00:00:00 2001 From: ashish Date: Thu, 21 May 2020 01:08:39 +0530 Subject: [PATCH 05/10] [circleci-issue] - codecov added Signed-off-by: Ashish Patel Signed-off-by: ashish --- .github/workflows/nodejs.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 4220f5c..313c4e7 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -20,5 +20,9 @@ jobs: - run: npm install - run: npm run build --if-present - run: npm test + - run: ./node_modules/.bin/nyc report --reporter=json + - run: mv coverage/coverage-final.json coverage/coverage.json + - run: ./node_modules/.bin/codecov + env: CI: true From 9ed7d77063972a58a3cc020c96bd684877fdc59b Mon Sep 17 00:00:00 2001 From: ashish Date: Thu, 21 May 2020 01:24:46 +0530 Subject: [PATCH 06/10] [circleci-issue] - codecov action Signed-off-by: Ashish Patel Signed-off-by: ashish --- .github/workflows/nodejs.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 313c4e7..9930cab 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -22,7 +22,13 @@ jobs: - run: npm test - run: ./node_modules/.bin/nyc report --reporter=json - run: mv coverage/coverage-final.json coverage/coverage.json - - run: ./node_modules/.bin/codecov - + pytest --cov=./ --cov-report=xml + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: coverage/coverage.json + name: codecov + fail_ci_if_error: true env: CI: true From 6cd04b9d4e265aa09df07e2a5acff3f1481b49ea Mon Sep 17 00:00:00 2001 From: ashish Date: Thu, 21 May 2020 01:26:29 +0530 Subject: [PATCH 07/10] [circleci-issue] - codecov action fixed Signed-off-by: Ashish Patel Signed-off-by: ashish --- .github/workflows/nodejs.yml | 1 - codecov.yml | 1 - 2 files changed, 2 deletions(-) delete mode 100644 codecov.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 9930cab..1750067 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -22,7 +22,6 @@ jobs: - run: npm test - run: ./node_modules/.bin/nyc report --reporter=json - run: mv coverage/coverage-final.json coverage/coverage.json - pytest --cov=./ --cov-report=xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 with: diff --git a/codecov.yml b/codecov.yml deleted file mode 100644 index 8b13789..0000000 --- a/codecov.yml +++ /dev/null @@ -1 +0,0 @@ - From 57a2a1000358dadd6ce4c5884e6e9bcbab1001c2 Mon Sep 17 00:00:00 2001 From: ashish Date: Thu, 21 May 2020 01:36:48 +0530 Subject: [PATCH 08/10] [circleci-issue] - codecov added separately Signed-off-by: Ashish Patel Signed-off-by: ashish --- .github/workflows/nodejs.yml | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 1750067..b13db46 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -4,9 +4,7 @@ on: [push] jobs: build: - runs-on: ubuntu-latest - strategy: matrix: node-version: [10.x, 11.x, 12.x, 13.x] @@ -20,14 +18,23 @@ jobs: - run: npm install - run: npm run build --if-present - run: npm test - - run: ./node_modules/.bin/nyc report --reporter=json - - run: mv coverage/coverage-final.json coverage/coverage.json - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - file: coverage/coverage.json - name: codecov - fail_ci_if_error: true env: CI: true + + codecov: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - run: npm install + - run: ./node_modules/.bin/nyc report --reporter=json + - run: mv coverage/coverage-final.json coverage/coverage.json + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: coverage/coverage.json + name: codecov + fail_ci_if_error: true From ec3a22175c036736d9a8e843724767f0c9c6db98 Mon Sep 17 00:00:00 2001 From: ashish Date: Thu, 21 May 2020 01:38:29 +0530 Subject: [PATCH 09/10] [circleci-issue] - codecov added separately2 Signed-off-by: Ashish Patel Signed-off-by: ashish --- .github/workflows/nodejs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index b13db46..1a4d7d8 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -29,6 +29,7 @@ jobs: with: node-version: 12 - run: npm install + - run: npm run build --if-present - run: ./node_modules/.bin/nyc report --reporter=json - run: mv coverage/coverage-final.json coverage/coverage.json - name: Upload coverage to Codecov From c744c23f75d8e0493a11de39c9f7a43ea992ab69 Mon Sep 17 00:00:00 2001 From: ashish Date: Thu, 21 May 2020 01:40:34 +0530 Subject: [PATCH 10/10] [circleci-issue] - codecov added separately3 Signed-off-by: Ashish Patel Signed-off-by: ashish --- .github/workflows/nodejs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 1a4d7d8..1863f03 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -30,6 +30,7 @@ jobs: node-version: 12 - run: npm install - run: npm run build --if-present + - run: npm test - run: ./node_modules/.bin/nyc report --reporter=json - run: mv coverage/coverage-final.json coverage/coverage.json - name: Upload coverage to Codecov