Skip to content

Commit

Permalink
Move to tape. Move to github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed May 14, 2020
1 parent c09f236 commit 99fda13
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 15 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: ci

on: [push, pull_request]

jobs:
legacy:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v2

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

- name: Install
run: |
npm install --production && npm install tape
- name: Run tests
run: |
npm run legacy
test:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v2

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

- name: Install
run: |
npm install
- name: Run tests
run: |
npm run test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ libleveldb.a
test-data/
_benchdb_*
*.sw*
.nyc_output
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
"description": "split a Text Stream into a Line Stream, using Stream 3",
"main": "index.js",
"scripts": {
"test": "standard && tap -b test.js"
"lint": "standard --verbose",
"unit": "nyc --lines 100 --branches 100 --functions 100 --check-coverage --reporter=text tape test.js",
"coverage": "nyc --reporter=html --reporter=cobertura --reporter=text tape test/test.js",
"test:report": "npm run lint && npm run unit:report",
"test": "npm run lint && npm run unit",
"legacy": "tape test/test.js"
},
"pre-commit": [
"test"
Expand All @@ -25,15 +30,11 @@
"fastbench": "^1.0.0",
"pre-commit": "^1.1.2",
"safe-buffer": "^5.1.1",
"standard": "^14.0.0",
"tap": "^12.0.0"
"nyc": "^15.0.1",
"tape": "^5.0.0",
"standard": "^14.0.0"
},
"dependencies": {
"readable-stream": "^3.0.0"
},
"greenkeeper": {
"ignore": [
"tap"
]
}
}

0 comments on commit 99fda13

Please sign in to comment.