Skip to content

Commit

Permalink
Move to GitHub Actions (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpicado authored Apr 24, 2021
1 parent 848f0b5 commit ce55bbe
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 17 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [6, 8, 10]
name: Node ${{ matrix.node }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fetch tags
run: git fetch --tags
- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Install
run: npm install
- name: Test
run: npm run test
- name: Coverage
run: npm run coverage
- name: Codecov
uses: codecov/codecov-action@v1
with:
file: coverage/lcov.info
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
[![level badge][level-badge]](https://github.com/Level/awesome)
[![npm](https://img.shields.io/npm/v/subleveldown.svg?label=&logo=npm)](https://www.npmjs.com/package/subleveldown)
[![Node version](https://img.shields.io/node/v/subleveldown.svg)](https://www.npmjs.com/package/subleveldown)
[![Travis](https://img.shields.io/travis/com/Level/subleveldown.svg?logo=travis&label=)](https://travis-ci.com/Level/subleveldown)
[![Test](https://github.com/Level/subleveldown/actions/workflows/test.yml/badge.svg)](https://github.com/Level/subleveldown/actions/workflows/test.yml)
[![npm](https://img.shields.io/npm/dm/subleveldown.svg?label=dl)](https://www.npmjs.com/package/subleveldown)
[![Coverage Status](https://coveralls.io/repos/github/Level/subleveldown/badge.svg)](https://coveralls.io/github/Level/subleveldown)
[![codecov](https://codecov.io/gh/Level/subleveldown/branch/master/graph/badge.svg)](https://codecov.io/gh/Level/subleveldown)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![Backers on Open Collective](https://opencollective.com/level/backers/badge.svg?color=orange)](#backers)
[![Sponsors on Open Collective](https://opencollective.com/level/sponsors/badge.svg?color=orange)](#sponsors)
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"main": "index.js",
"scripts": {
"test": "standard && hallmark && (nyc -s node test | faucet) && nyc report",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"coverage": "nyc report -r lcovonly",
"hallmark": "hallmark --fix",
"dependency-check": "dependency-check --no-dev .",
"prepublishOnly": "npm run dependency-check"
Expand All @@ -25,7 +25,6 @@
},
"devDependencies": {
"after": "^0.8.2",
"coveralls": "^3.0.2",
"dependency-check": "^4.1.0",
"faucet": "^0.0.1",
"hallmark": "^3.1.0",
Expand Down

0 comments on commit ce55bbe

Please sign in to comment.