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 diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 4220f5c..1863f03 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] @@ -22,3 +20,23 @@ jobs: - run: npm test 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: 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 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) diff --git a/codecov.yml b/codecov.yml deleted file mode 100644 index 8b13789..0000000 --- a/codecov.yml +++ /dev/null @@ -1 +0,0 @@ -