Skip to content

Commit

Permalink
chore(ci): use github action instead of travis-ci (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
Slashgear authored Mar 3, 2021
1 parent 1934675 commit dd67bb6
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 17 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Continous Integration

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x, 12.x, 14.x, 15.x]
superagent-version: [3.6.0,3.7.0,3.8.0,4.1.0]

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- run: yarn install
- run: yarn add superagent@~${{ matrix.superagent-version }} && yarn ci
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
![](https://img.shields.io/badge/License-MIT-00CCFF.svg?style=flat-square)
![](https://img.shields.io/badge/superagent--mock-JS-FF0066.svg?style=flat-square)
[![NPM Downloads](http://img.shields.io/npm/dm/superagent-mock.svg?style=flat-square)](https://www.npmjs.org/package/superagent-mock)
[![Build Status](http://img.shields.io/travis/M6Web/superagent-mock.svg?style=flat-square)](https://travis-ci.org/M6Web/superagent-mock)
![npm](https://img.shields.io/npm/v/superagent-mock)
![npm bundle size](https://img.shields.io/bundlephobia/minzip/superagent-mock)
![npm](https://img.shields.io/npm/dy/superagent-mock)
![GitHub last commit](https://img.shields.io/github/last-commit/M6web/superagent-mock)
![NPM](https://img.shields.io/npm/l/superagent-mock)
[![NPM Downloads](http://img.shields.io/npm/dm/superagent-mock.svg)](https://www.npmjs.org/package/superagent-mock)
[![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)

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

## Requirements

node >= 6
node >= 8.0
superagent >= ^3.6.0

## Usage
Expand Down

0 comments on commit dd67bb6

Please sign in to comment.