Skip to content

Commit 626f2d2

Browse files
ci: disable Codecov and measure test coverage on every run (#3548)
1 parent 03536f9 commit 626f2d2

File tree

6 files changed

+3
-48
lines changed

6 files changed

+3
-48
lines changed

.c8rc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"temp-directory": "coverage",
1515
"report-dir": "coverage",
1616
"skip-full": true,
17-
"reporter": ["json", "html", "text"],
17+
"reporter": ["html", "text"],
1818
"check-coverage": true,
1919
"branches": 100,
2020
"lines": 100,

.github/workflows/ci.yml

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -121,40 +121,12 @@ jobs:
121121
- name: Run Tests
122122
run: npm run fuzzonly
123123

124-
coverage:
125-
name: Measure test coverage
126-
runs-on: ubuntu-latest
127-
steps:
128-
- name: Checkout repo
129-
uses: actions/checkout@v2
130-
with:
131-
persist-credentials: false
132-
133-
- name: Setup Node.js
134-
uses: actions/setup-node@v2
135-
with:
136-
cache: npm
137-
node-version-file: '.node-version'
138-
139-
- name: Install Dependencies
140-
run: npm ci --ignore-scripts
141-
142-
- name: Run tests and measure code coverage
143-
run: npm run testonly:cover
144-
145-
- name: Upload coverage to Codecov
146-
if: ${{ always() }}
147-
uses: codecov/codecov-action@v1
148-
with:
149-
file: ./coverage/coverage-final.json
150-
fail_ci_if_error: true
151-
152124
test:
153125
name: Run tests on Node v${{ matrix.node_version_to_setup }}
154126
runs-on: ubuntu-latest
155127
strategy:
156128
matrix:
157-
node_version_to_setup: [12, 14, 16, 17]
129+
node_version_to_setup: [14, 16, 18]
158130
steps:
159131
- name: Checkout repo
160132
uses: actions/checkout@v2

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ The JavaScript reference implementation for GraphQL, a query language for APIs c
44

55
[![npm version](https://badge.fury.io/js/graphql.svg)](https://badge.fury.io/js/graphql)
66
[![Build Status](https://github.com/graphql/graphql-js/workflows/CI/badge.svg?branch=main)](https://github.com/graphql/graphql-js/actions?query=branch%3Amain)
7-
[![Coverage Status](https://codecov.io/gh/graphql/graphql-js/branch/main/graph/badge.svg)](https://codecov.io/gh/graphql/graphql-js)
87

98
See more complete documentation at https://graphql.org/ and
109
https://graphql.org/graphql-js/.

codecov.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

cspell.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ words:
4646

4747
# TODO: contribute upstream
4848
- deno
49-
- codecov
5049

5150
# TODO: remove bellow words
5251
- QLID # GraphQLID

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838
"test": "npm run lint && npm run check && npm run testonly && npm run prettier:check && npm run check:spelling && npm run check:integrations",
3939
"lint": "eslint --cache --max-warnings 0 .",
4040
"check": "tsc --pretty",
41-
"testonly": "mocha --full-trace src/**/__tests__/**/*-test.ts",
42-
"testonly:cover": "c8 npm run testonly",
41+
"testonly": "c8 mocha --full-trace src/**/__tests__/**/*-test.ts",
4342
"prettier": "prettier --write --list-different .",
4443
"prettier:check": "prettier --check .",
4544
"check:spelling": "cspell --cache --no-progress '**/*'",

0 commit comments

Comments
 (0)