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

Commit

Permalink
Swith from coveralls to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Jun 13, 2020
1 parent 33d8421 commit 7de2e96
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 30 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,12 @@ jobs:
- name: Run tests and measure code coverage
run: npm run testonly:cover

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

test:
name: Run tests on Node v${{ matrix.node_version_to_setup }}
Expand Down
4 changes: 3 additions & 1 deletion .nycrc.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
all: true
include:
- 'src/'
exclude:
- 'src/polyfills'
clean: true
temp-directory: 'coverage'
report-dir: 'coverage'
skip-full: true
reporter: [lcov, html, text]
reporter: [json, html, text]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

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/).

Expand Down
14 changes: 14 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
codecov:
notify:
require_ci_to_pass: yes

parsers:
javascript:
enable_partials: yes

comment: no
coverage:
status:
project:
default:
target: auto
25 changes: 0 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"body-parser": "1.19.0",
"chai": "4.2.0",
"connect": "3.7.0",
"coveralls": "3.1.0",
"dtslint": "3.6.10",
"eslint": "7.2.0",
"eslint-plugin-flowtype": "5.1.3",
Expand Down

0 comments on commit 7de2e96

Please sign in to comment.