Skip to content

Commit

Permalink
Merge PR #9 from 'nodech/update-ci'
Browse files Browse the repository at this point in the history
  • Loading branch information
nodech committed Dec 25, 2021
2 parents d3decfb + a3aced2 commit 0e1b4ac
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 60 deletions.
59 changes: 0 additions & 59 deletions .circleci/config.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build

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

jobs:
build:

runs-on: ubuntu-latest

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

steps:

- uses: actions/checkout@v2
- name: Setup ${{ matrix.node-version }}
uses: actions/setup-node@v2

- name: Install
run: npm install nyc coveralls bslint

- name: Lint
run: npm run lint

- name: Test
run: npm run test-ci

- name: Coverage
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# binet

[![Build Status][ci-status-img]][ci-status-url]
[![Coverage Status][coverage-status-img]][coverage-status-url]

IP address tools for javascript.

## Usage
Expand All @@ -19,3 +22,8 @@ all code is your original work. `</legalese>`
- Copyright (c) 2017, Christopher Jeffrey (MIT License).

See LICENSE for more info.

[ci-status-img]: https://github.com/bcoin-org/binet/workflows/Build/badge.svg
[ci-status-url]: https://github.com/bcoin-org/binet/tree/master
[coverage-status-img]: https://coveralls.io/repos/github/bcoin-org/binet/badge.svg?branch=master
[coverage-status-url]: https://coveralls.io/github/bcoin-org/binet?branch=master
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"main": "./lib/binet.js",
"scripts": {
"lint": "eslint lib/ test/ || exit 0",
"test": "bmocha --reporter spec test/*-test.js"
"test": "bmocha --reporter spec test/*-test.js",
"test-ci": "nyc --reporter lcov bmocha -- --reporter spec test/*.js"
},
"dependencies": {
"bs32": "~0.1.5",
Expand Down

0 comments on commit 0e1b4ac

Please sign in to comment.