Skip to content

Commit dd67bb6

Browse files
authored
chore(ci): use github action instead of travis-ci (#99)
1 parent 1934675 commit dd67bb6

File tree

3 files changed

+34
-17
lines changed

3 files changed

+34
-17
lines changed

.github/workflows/node.js.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Continous Integration
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [8.x, 10.x, 12.x, 14.x, 15.x]
15+
superagent-version: [3.6.0,3.7.0,3.8.0,4.1.0]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
25+
- run: yarn install
26+
- run: yarn add superagent@~${{ matrix.superagent-version }} && yarn ci

.travis.yml

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

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
![](https://img.shields.io/badge/License-MIT-00CCFF.svg?style=flat-square)
2-
![](https://img.shields.io/badge/superagent--mock-JS-FF0066.svg?style=flat-square)
3-
[![NPM Downloads](http://img.shields.io/npm/dm/superagent-mock.svg?style=flat-square)](https://www.npmjs.org/package/superagent-mock)
4-
[![Build Status](http://img.shields.io/travis/M6Web/superagent-mock.svg?style=flat-square)](https://travis-ci.org/M6Web/superagent-mock)
1+
![npm](https://img.shields.io/npm/v/superagent-mock)
2+
![npm bundle size](https://img.shields.io/bundlephobia/minzip/superagent-mock)
3+
![npm](https://img.shields.io/npm/dy/superagent-mock)
4+
![GitHub last commit](https://img.shields.io/github/last-commit/M6web/superagent-mock)
5+
![NPM](https://img.shields.io/npm/l/superagent-mock)
6+
[![NPM Downloads](http://img.shields.io/npm/dm/superagent-mock.svg)](https://www.npmjs.org/package/superagent-mock)
7+
[![Continous Integration](https://github.com/M6Web/superagent-mock/actions/workflows/node.js.yml/badge.svg)](https://github.com/M6Web/superagent-mock/actions/workflows/node.js.yml)
58

69
<p align="center">
710
<b><a href="#installation">Installation</a></b>
@@ -10,8 +13,6 @@
1013
|
1114
<b><a href="#supported-methods">Supported Methods</a></b>
1215
|
13-
<b><a href="#tests">Tests</a></b>
14-
|
1516
<b><a href="#credits">Credits</a></b>
1617
|
1718
<b><a href="#license">License</a></b>
@@ -31,7 +32,7 @@ Install with [yarn](https://yarnpkg.com/): `yarn add superagent-mock`
3132

3233
## Requirements
3334

34-
node >= 6
35+
node >= 8.0
3536
superagent >= ^3.6.0
3637

3738
## Usage

0 commit comments

Comments
 (0)