Skip to content
This repository has been archived by the owner on Jul 10, 2021. It is now read-only.

Commit

Permalink
build: add github action and coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
helio-frota committed Oct 13, 2020
1 parent eca7f10 commit 2cf878a
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 22 deletions.
14 changes: 0 additions & 14 deletions .circleci/config.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/nodejs-ci-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Node.js CI

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

jobs:
build:

runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
- run: echo 'repo_token:' ${{ secrets.COVERALLS_GITHUB_TOKEN }} > ./.coveralls.yml
- run: node_modules/nyc/bin/nyc.js report --reporter=text-lcov | node_modules/coveralls/bin/coveralls.js
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# Hystrix Metrics for Opossum Circuit Breaker

[![CircleCI](https://circleci.com/gh/nodeshift/opossum-hystrix.svg?style=svg)](https://circleci.com/gh/nodeshift/opossum-hystrix)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/de288081beba4c9297b88e2057204149)](https://www.codacy.com/app/nodeshift/opossum-hystrix?utm_source=github.com&utm_medium=referral&utm_content=nodeshift/opossum-hystrix&utm_campaign=Badge_Grade)
[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/de288081beba4c9297b88e2057204149)](https://www.codacy.com/app/nodeshift/opossum-hystrix?utm_source=github.com&utm_medium=referral&utm_content=nodeshift/opossum-hystrix&utm_campaign=Badge_Coverage)
![Node.js CI](https://github.com/nodeshift/opossum-hystrix/workflows/Node.js%20CI/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/nodeshift/opossum-hystrix/badge.svg?branch=master)](https://coveralls.io/github/nodeshift/opossum-hystrix?branch=master)
[![dependencies Status](https://david-dm.org/nodeshift/opossum-hystrix/status.svg)](https://david-dm.org/nodeshift/opossum-hystrix)
[![Known Vulnerabilities](https://snyk.io/test/npm/opossum-hystrix/badge.svg)](https://snyk.io/test/npm/opossum-hystrix)

[![NPM](https://nodei.co/npm/opossum-hystrix.png)](https://npmjs.org/package/opossum-hystrix) [![Greenkeeper badge](https://badges.greenkeeper.io/nodeshift/opossum-hystrix.svg)](https://greenkeeper.io/)

This module provides [Hystrix](https://github.com/Netflix/Hystrix) metrics for
[opossum](https://github.com/nodeshift/opossum) circuit breakers. To use
it with your circuit breakers, just pass them in to the `HystrixStats`
Expand Down
21 changes: 21 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"scripts": {
"pretest": "npm run lint",
"test": "nyc tape test/*.js | tap-spec",
"coverage": "nyc report && if [ $CODACY_PROJECT_TOKEN'' != '' ] ; then nyc report --reporter=text-lcov | codacy-coverage; fi",
"ci": "npm run test && npm run coverage",
"prerelease": "npm run ci",
"prerelease": "npm run test",
"release": "standard-version -s -a",
"lint": "standardx test/*.js index.js"
},
Expand All @@ -26,11 +24,15 @@
"license": "Apache-2.0",
"devDependencies": {
"codacy-coverage": "^3.4.0",
"coveralls": "^3.1.0",
"nyc": "^15.1.0",
"opossum": "^5.0.1",
"standard-version": "^9.0.0",
"standardx": "^5.0.0",
"tap-spec": "^5.0.0",
"tape": "^5.0.1"
},
"engines": {
"node": "^14 || ^12 || ^10"
}
}

0 comments on commit 2cf878a

Please sign in to comment.