Skip to content

Commit d895627

Browse files
authored
Merge pull request #114 from codingtools/issue/circle-ci
Issue/circle ci
2 parents cd9e009 + c744c23 commit d895627

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed
File renamed without changes.

.github/workflows/nodejs.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ on: [push]
44

55
jobs:
66
build:
7-
87
runs-on: ubuntu-latest
9-
108
strategy:
119
matrix:
1210
node-version: [10.x, 11.x, 12.x, 13.x]
@@ -22,3 +20,23 @@ jobs:
2220
- run: npm test
2321
env:
2422
CI: true
23+
24+
codecov:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: actions/setup-node@v1
29+
with:
30+
node-version: 12
31+
- run: npm install
32+
- run: npm run build --if-present
33+
- run: npm test
34+
- run: ./node_modules/.bin/nyc report --reporter=json
35+
- run: mv coverage/coverage-final.json coverage/coverage.json
36+
- name: Upload coverage to Codecov
37+
uses: codecov/codecov-action@v1
38+
with:
39+
token: ${{ secrets.CODECOV_TOKEN }}
40+
file: coverage/coverage.json
41+
name: codecov
42+
fail_ci_if_error: true

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
CLI for Developers
44

55
[![GithubCI](https://github.com/codingtools/cdt/workflows/GithubCI/badge.svg)](https://github.com/codingtools/cdt/actions?query=workflow%3AGithubCI)
6-
[![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)
76
[![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)
87
[![codecov](https://codecov.io/gh/codingtools/cdt/branch/release%2Frelease-v0.1/graph/badge.svg)](https://codecov.io/gh/codingtools/cdt)
98
[![Version](https://img.shields.io/npm/v/@codingtools/cdt)](https://npmjs.org/package/@codingtools/cdt)

codecov.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)