diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b21e0239..dd03c2dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/.nycrc.yml b/.nycrc.yml index fde5e5a0..5110ba7e 100644 --- a/.nycrc.yml +++ b/.nycrc.yml @@ -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] diff --git a/README.md b/README.md index b10feb51..51370257 100644 --- a/README.md +++ b/README.md @@ -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/). diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..ca5256f7 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,14 @@ +codecov: + notify: + require_ci_to_pass: yes + +parsers: + javascript: + enable_partials: yes + +comment: no +coverage: + status: + project: + default: + target: auto diff --git a/package-lock.json b/package-lock.json index a44db7d0..5bf754b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2175,19 +2175,6 @@ "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true }, - "coveralls": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/coveralls/-/coveralls-3.1.0.tgz", - "integrity": "sha512-sHxOu2ELzW8/NC1UP5XVLbZDzO4S3VxfFye3XYCznopHy02YjNkHcj5bKaVw2O7hVaBdBjEdQGpie4II1mWhuQ==", - "dev": true, - "requires": { - "js-yaml": "^3.13.1", - "lcov-parse": "^1.0.0", - "log-driver": "^1.2.7", - "minimist": "^1.2.5", - "request": "^2.88.2" - } - }, "cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", @@ -4111,12 +4098,6 @@ "integrity": "sha1-RIR8o5TOjWtSGuhYFr1kUJlCs4U=", "dev": true }, - "lcov-parse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcov-parse/-/lcov-parse-1.0.0.tgz", - "integrity": "sha1-6w1GtUER68VhrLTECO+TY73I9+A=", - "dev": true - }, "leven": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", @@ -4199,12 +4180,6 @@ "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=", "dev": true }, - "log-driver": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/log-driver/-/log-driver-1.2.7.tgz", - "integrity": "sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg==", - "dev": true - }, "log-symbols": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz", diff --git a/package.json b/package.json index 5511e5ee..b877a242 100644 --- a/package.json +++ b/package.json @@ -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",