Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 7de2e96

Browse files
committed
Swith from coveralls to codecov
1 parent 33d8421 commit 7de2e96

File tree

6 files changed

+23
-30
lines changed

6 files changed

+23
-30
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,12 @@ jobs:
6161
- name: Run tests and measure code coverage
6262
run: npm run testonly:cover
6363

64-
- name: Upload coverage to Coveralls
64+
- name: Upload coverage to Codecov
6565
if: ${{ always() }}
66-
run: cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
66+
uses: codecov/codecov-action@v1
67+
with:
68+
file: ./coverage/coverage-final.json
69+
fail_ci_if_error: true
6770

6871
test:
6972
name: Run tests on Node v${{ matrix.node_version_to_setup }}

.nycrc.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
all: true
12
include:
23
- 'src/'
34
exclude:
45
- 'src/polyfills'
56
clean: true
67
temp-directory: 'coverage'
8+
report-dir: 'coverage'
79
skip-full: true
8-
reporter: [lcov, html, text]
10+
reporter: [json, html, text]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![npm version](https://badge.fury.io/js/express-graphql.svg)](https://badge.fury.io/js/express-graphql)
44
[![Build Status](https://github.com/graphql/express-graphql/workflows/CI/badge.svg?branch=master)](https://github.com/graphql/express-graphql/actions?query=branch%3Amaster)
5-
[![Coverage Status](https://coveralls.io/repos/graphql/express-graphql/badge.svg?branch=master&service=github)](https://coveralls.io/github/graphql/express-graphql?branch=master)
5+
[![Coverage Status](https://codecov.io/gh/graphql/express-graphql/branch/master/graph/badge.svg)](https://codecov.io/gh/graphql/express-graphql)
66

77
Create a GraphQL HTTP server with any HTTP web framework that supports connect styled middleware, including [Connect](https://github.com/senchalabs/connect) itself, [Express](https://expressjs.com) and [Restify](http://restify.com/).
88

codecov.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
codecov:
2+
notify:
3+
require_ci_to_pass: yes
4+
5+
parsers:
6+
javascript:
7+
enable_partials: yes
8+
9+
comment: no
10+
coverage:
11+
status:
12+
project:
13+
default:
14+
target: auto

package-lock.json

Lines changed: 0 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
"body-parser": "1.19.0",
6161
"chai": "4.2.0",
6262
"connect": "3.7.0",
63-
"coveralls": "3.1.0",
6463
"dtslint": "3.6.10",
6564
"eslint": "7.2.0",
6665
"eslint-plugin-flowtype": "5.1.3",

0 commit comments

Comments
 (0)