Skip to content

Commit

Permalink
Move to GitHub Actions (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpicado authored Apr 24, 2021
1 parent 8326deb commit a37b4ab
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 16 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: [10, 12, 14]
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
12 changes: 0 additions & 12 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 @@ -6,8 +6,8 @@ Open a leveldb handle multiple times, transparently upgrading to use
[![level badge][level-badge]](https://github.com/Level/awesome)
[![npm](https://img.shields.io/npm/v/level-party.svg?label=&logo=npm)](https://www.npmjs.com/package/level-party)
[![Node version](https://img.shields.io/node/v/level-party.svg)](https://www.npmjs.com/package/level-party)
[![Travis](https://img.shields.io/travis/com/Level/party.svg?logo=travis&label=)](https://travis-ci.com/Level/party)
[![Coverage Status](https://coveralls.io/repos/github/Level/party/badge.svg)](https://coveralls.io/github/Level/party)
[![Test](https://github.com/Level/party/actions/workflows/test.yml/badge.svg)](https://github.com/Level/party/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/Level/party/branch/master/graph/badge.svg)](https://codecov.io/gh/Level/party)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![npm](https://img.shields.io/npm/dm/level-party.svg?label=dl)](https://www.npmjs.com/package/level-party)
[![Backers on Open Collective](https://opencollective.com/level/backers/badge.svg?color=orange)](#backers)
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"scripts": {
"test": "standard && hallmark && nyc tape test/*.js",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"coverage": "nyc report -r lcovonly",
"hallmark": "hallmark --fix",
"dependency-check": "dependency-check --no-dev . test/*.js",
"prepublishOnly": "npm run dependency-check"
Expand All @@ -23,7 +23,6 @@
},
"devDependencies": {
"bytewise": "^1.1.0",
"coveralls": "^3.0.9",
"dependency-check": "^4.1.0",
"hallmark": "^3.1.0",
"level-community": "^3.0.0",
Expand Down

0 comments on commit a37b4ab

Please sign in to comment.