Skip to content

Commit

Permalink
Move to GitHub Actions and Codecov (#1536)
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus authored Nov 20, 2020
1 parent 472b8ef commit 35f5822
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 55 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on:
- push
- pull_request

jobs:
test:
name: Node.js ${{ matrix.node_version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node_version:
- 15
- 14
- 12
- 10
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
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
51 changes: 0 additions & 51 deletions .travis.yml

This file was deleted.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"node": ">=10.19.0"
},
"scripts": {
"test": "xo && npm run build && nyc --reporter=html --reporter=text ava",
"test": "xo && npm run build && nyc ava",
"release": "np",
"build": "del-cli dist && tsc",
"prepare": "npm run build"
Expand Down Expand Up @@ -71,7 +71,6 @@
"ava": "^3.13.0",
"axios": "^0.21.0",
"benchmark": "^2.1.4",
"coveralls": "^3.1.0",
"create-test-server": "^3.0.1",
"del-cli": "^3.0.1",
"delay": "^4.4.0",
Expand Down Expand Up @@ -107,6 +106,11 @@
}
},
"nyc": {
"reporter": [
"text",
"html",
"lcov"
],
"extension": [
".ts"
],
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

> Human-friendly and powerful HTTP request library for Node.js
[![Build Status: Linux](https://travis-ci.com/sindresorhus/got.svg?branch=master)](https://travis-ci.com/github/sindresorhus/got)
[![Coverage Status](https://coveralls.io/repos/github/sindresorhus/got/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/got?branch=master)
[![Build Status](https://github.com/sindresorhus/got/workflows/CI/badge.svg?branch=master)](https://github.com/sindresorhus/got/actions?query=branch%3Amaster+workflow%3ACI)
[![Coverage Status](https://codecov.io/gh/sindresorhus/got/branch/master/graph/badge.svg)](https://codecov.io/gh/sindresorhus/got/branch/master)
[![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 35f5822

Please sign in to comment.