Skip to content

Commit

Permalink
Merge ab98f3a into ea34728
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdc committed Aug 29, 2021
2 parents ea34728 + ab98f3a commit 0e0a356
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 8 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COVERALLS_REPO_TOKEN=qpEAt0Gxdf4iyyZiH8UVpPC1RTDDPZ6m3 bundle exec rspec spec
1 change: 0 additions & 1 deletion .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: npm audit

on:
push:
branches: [ master ]
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: npm audit
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: npm install, make test-coverage
run: |
npm ci
npm run test2
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
7 changes: 1 addition & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: tests

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]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Identify the contents of a Node stream based on the presence of a file signature (magic number). Can be extended to check for additional file formats.

[![Build Status](https://travis-ci.org/chrisdc/identify-stream.svg?branch=master)](https://travis-ci.org/chrisdc/identify-stream)
[![build](https://github.com/chrisdc/identify-stream/actions/workflows/tests.yml/badge.svg)](https://github.com/chrisdc/identify-stream/actions/workflows/tests.yml)
[![Coverage Status](https://coveralls.io/repos/github/chrisdc/identify-stream/badge.svg?branch=master)](https://coveralls.io/github/chrisdc/identify-stream?branch=master)

## Install
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "./lib/index.js",
"scripts": {
"test": "nyc --reporter=text --reporter=text-summary mocha",
"test2": "nyc npm test && nyc report --reporter=lcov",
"lint": "eslint ."
},
"repository": {
Expand Down

0 comments on commit 0e0a356

Please sign in to comment.