Skip to content

Commit

Permalink
Disable coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 15, 2021
1 parent 04ff720 commit 1eee7c2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
- windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
- uses: codecov/codecov-action@v1
if: matrix.os == 'ubuntu-latest' && matrix.node-version == 14
with:
fail_ci_if_error: true
# - uses: codecov/codecov-action@v1
# if: matrix.os == 'ubuntu-latest' && matrix.node-version == 14
# with:
# fail_ci_if_error: true
6 changes: 3 additions & 3 deletions documentation/examples/gh-got.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import fs from 'fs';
import got from '../../index.js';
import got from '../../dist/source/index.js';

const packageJson = JSON.parse(fs.readFileSync('../../package.json', 'utf8'));
const packageJson = JSON.parse(fs.readFileSync(new URL('../../package.json', import.meta.url), 'utf8'));

const getRateLimit = (headers) => ({
const getRateLimit = headers => ({
limit: Number.parseInt(headers['x-ratelimit-limit'], 10),
remaining: Number.parseInt(headers['x-ratelimit-remaining'], 10),
reset: new Date(Number.parseInt(headers['x-ratelimit-reset'], 10) * 1000)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"node": ">=12.13"
},
"scripts": {
"test": "xo && nyc ava",
"test": "xo && ava",
"release": "np",
"build": "del-cli dist && tsc",
"prepare": "npm run build"
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

> Human-friendly and powerful HTTP request library for Node.js
[![Coverage Status](https://codecov.io/gh/sindresorhus/got/branch/main/graph/badge.svg)](https://codecov.io/gh/sindresorhus/got/branch/main)
<!-- [![Coverage Status](https://codecov.io/gh/sindresorhus/got/branch/main/graph/badge.svg)](https://codecov.io/gh/sindresorhus/got/branch/main) -->
[![Downloads](https://img.shields.io/npm/dm/got.svg)](https://npmjs.com/got)
[![Install size](https://packagephobia.now.sh/badge?p=got)](https://packagephobia.now.sh/result?p=got)

Expand Down

0 comments on commit 1eee7c2

Please sign in to comment.