Skip to content

Commit

Permalink
Merge pull request #8 from SerayaEryn/github-actions
Browse files Browse the repository at this point in the history
GitHub actions
  • Loading branch information
SerayaEryn committed Sep 28, 2019
2 parents 05bcef8 + 7926291 commit 33650c3
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 19 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,37 @@
name: ci

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]

steps:
- uses: actions/checkout@v1

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

- name: Install
run: |
npm install
- name: Run Tests & generate coverage
run: |
npm run coveralls
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel: true

- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
6 changes: 6 additions & 0 deletions .nycrc
@@ -0,0 +1,6 @@
{
"all": true,
"check-coverage": true,
"reporter": [ "lcov", "text" ],
"include": [ "index.js" ]
}
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
@@ -1,11 +1,11 @@
# encoding-negotiator
## Install

[![Greenkeeper badge](https://badges.greenkeeper.io/SerayaEryn/encoding-negotiator.svg)](https://greenkeeper.io/)
[![Build Status](https://travis-ci.org/SerayaEryn/encoding-negotiator.svg?branch=master)](https://travis-ci.org/SerayaEryn/encoding-negotiator)
![Build Status](https://github.com/SerayaEryn/encoding-negotiator/workflows/ci/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/SerayaEryn/encoding-negotiator/badge.svg?branch=master)](https://coveralls.io/github/SerayaEryn/encoding-negotiator?branch=master)
[![NPM version](https://img.shields.io/npm/v/encoding-negotiator.svg?style=flat)](https://www.npmjs.com/package/encoding-negotiator)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![Greenkeeper badge](https://badges.greenkeeper.io/SerayaEryn/encoding-negotiator.svg)](https://greenkeeper.io/)

```
npm install encoding-negotiator
Expand Down
5 changes: 2 additions & 3 deletions package.json
Expand Up @@ -7,7 +7,7 @@
"unit": "ava test/*.js",
"test": "npm run lint && npm run unit",
"lint": "standard index.js test/* benchmark/*",
"coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls",
"coveralls": "nyc npm test",
"coverage-report": "nyc npm test && nyc report --reporter=html"
},
"keywords": [
Expand All @@ -23,7 +23,6 @@
"devDependencies": {
"ava": "^2.0.0",
"benchmark": "^2.1.4",
"coveralls": "^3.0.0",
"negotiator": "^0.6.2",
"nyc": "^14.1.1",
"standard": "^14.0.0"
Expand All @@ -35,5 +34,5 @@
"type": "git",
"url": "git+https://github.com/SerayaEryn/encoding-negotiator.git"
},
"dependencies": {}
"files": []
}

0 comments on commit 33650c3

Please sign in to comment.