Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.

Commit e5453d7

Browse files
authored
Move to GitHub Actions (#718)
Ref Level/community#99
1 parent e7d9dbe commit e5453d7

File tree

7 files changed

+92
-68
lines changed

7 files changed

+92
-68
lines changed

.github/dependabot.yml

+4
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ updates:
66
interval: monthly
77
ignore:
88
- dependency-name: dependency-check
9+
- package-ecosystem: github-actions
10+
directory: /
11+
schedule:
12+
interval: monthly

.github/workflows/sauce.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Sauce Labs
2+
on: push
3+
concurrency: sauce-labs
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v1
10+
- name: Set up node
11+
uses: actions/setup-node@v1
12+
with:
13+
node-version: 14
14+
- name: Install
15+
run: npm install
16+
env:
17+
# Download Sauce Connect binary now instead of on first run
18+
SAUCE_CONNECT_DOWNLOAD_ON_INSTALL: true
19+
- name: Add host
20+
run: echo "127.0.0.1 airtap.local" | sudo tee -a /etc/hosts
21+
- name: Test
22+
run: npm run test-browsers
23+
env:
24+
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
25+
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}

.github/workflows/test.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Test
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
node: [10, 12, 14]
9+
name: Node ${{ matrix.node }}
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Use node ${{ matrix.node }}
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: ${{ matrix.node }}
17+
- name: Install
18+
run: npm install
19+
- name: Test
20+
run: npm test
21+
- name: Coverage
22+
run: npm run coverage
23+
- name: Codecov
24+
uses: codecov/codecov-action@v1
25+
with:
26+
file: coverage/lcov.info

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ yarn.lock
1111
package-lock.json
1212
.nyc_output/
1313
airtap.log
14+
coverage/

.travis.yml

-33
This file was deleted.

README.md

+35-33
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
[![level badge][level-badge]](https://github.com/Level/awesome)
44
[![npm](https://img.shields.io/npm/v/levelup.svg?label=&logo=npm)](https://www.npmjs.com/package/levelup)
55
[![Node version](https://img.shields.io/node/v/levelup.svg)](https://www.npmjs.com/package/levelup)
6-
[![Travis](https://img.shields.io/travis/com/Level/levelup.svg?logo=travis&label=)](https://travis-ci.com/Level/levelup)
6+
[![Test](https://github.com/Level/levelup/actions/workflows/test.yml/badge.svg)](https://github.com/Level/levelup/actions/workflows/test.yml)
77
[![npm](https://img.shields.io/npm/dm/levelup.svg?label=dl)](https://www.npmjs.com/package/levelup)
8-
[![Coverage Status](https://coveralls.io/repos/github/Level/levelup/badge.svg)](https://coveralls.io/github/Level/levelup)
8+
[![Coverage Status](https://codecov.io/gh/Level/levelup/branch/master/graph/badge.svg)](https://codecov.io/gh/Level/levelup)
99
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
1010
[![Backers on Open Collective](https://opencollective.com/level/backers/badge.svg?color=orange)](#backers)
1111
[![Sponsors on Open Collective](https://opencollective.com/level/sponsors/badge.svg?color=orange)](#sponsors)
@@ -14,37 +14,39 @@
1414

1515
<details><summary>Click to expand</summary>
1616

17-
- [Introduction](#introduction)
18-
- [Supported Platforms](#supported-platforms)
19-
- [Usage](#usage)
20-
- [API](#api)
21-
- [Special Notes](#special-notes)
22-
- [`levelup(db[, options[, callback]])`](#levelupdb-options-callback)
23-
- [`db.supports`](#dbsupports)
24-
- [`db.open([options][, callback])`](#dbopenoptions-callback)
25-
- [`db.close([callback])`](#dbclosecallback)
26-
- [`db.put(key, value[, options][, callback])`](#dbputkey-value-options-callback)
27-
- [`db.get(key[, options][, callback])`](#dbgetkey-options-callback)
28-
- [`db.del(key[, options][, callback])`](#dbdelkey-options-callback)
29-
- [`db.batch(array[, options][, callback])` _(array form)_](#dbbatcharray-options-callback-array-form)
30-
- [`db.batch()` _(chained form)_](#dbbatch-chained-form)
31-
- [`db.isOpen()`](#dbisopen)
32-
- [`db.isClosed()`](#dbisclosed)
33-
- [`db.createReadStream([options])`](#dbcreatereadstreamoptions)
34-
- [`db.createKeyStream([options])`](#dbcreatekeystreamoptions)
35-
- [`db.createValueStream([options])`](#dbcreatevaluestreamoptions)
36-
- [`db.iterator([options])`](#dbiteratoroptions)
37-
- [`db.clear([options][, callback])`](#dbclearoptions-callback)
38-
- [What happened to `db.createWriteStream`?](#what-happened-to-dbcreatewritestream)
39-
- [Promise Support](#promise-support)
40-
- [Events](#events)
41-
- [Multi-process Access](#multi-process-access)
42-
- [Contributing](#contributing)
43-
- [Big Thanks](#big-thanks)
44-
- [Donate](#donate)
45-
- [Backers](#backers)
46-
- [Sponsors](#sponsors)
47-
- [License](#license)
17+
- [levelup](#levelup)
18+
- [Table of Contents](#table-of-contents)
19+
- [Introduction](#introduction)
20+
- [Supported Platforms](#supported-platforms)
21+
- [Usage](#usage)
22+
- [API](#api)
23+
- [Special Notes](#special-notes)
24+
- [`levelup(db[, options[, callback]])`](#levelupdb-options-callback)
25+
- [`db.supports`](#dbsupports)
26+
- [`db.open(options)`](#dbopenoptions)
27+
- [`db.close([callback])`](#dbclosecallback)
28+
- [`db.put(key, value, options)`](#dbputkey-value-options)
29+
- [`db.get(key, options)`](#dbgetkey-options)
30+
- [`db.del(key, options)`](#dbdelkey-options)
31+
- [`db.batch(array, options)` _(array form)_](#dbbatcharray-options-array-form)
32+
- [`db.batch()` _(chained form)_](#dbbatch-chained-form)
33+
- [`db.isOpen()`](#dbisopen)
34+
- [`db.isClosed()`](#dbisclosed)
35+
- [`db.createReadStream([options])`](#dbcreatereadstreamoptions)
36+
- [`db.createKeyStream([options])`](#dbcreatekeystreamoptions)
37+
- [`db.createValueStream([options])`](#dbcreatevaluestreamoptions)
38+
- [`db.iterator([options])`](#dbiteratoroptions)
39+
- [`db.clear(options)`](#dbclearoptions)
40+
- [What happened to `db.createWriteStream`?](#what-happened-to-dbcreatewritestream)
41+
- [Promise Support](#promise-support)
42+
- [Events](#events)
43+
- [Multi-process Access](#multi-process-access)
44+
- [Contributing](#contributing)
45+
- [Big Thanks](#big-thanks)
46+
- [Donate](#donate)
47+
- [Backers](#backers)
48+
- [Sponsors](#sponsors)
49+
- [License](#license)
4850

4951
</details>
5052

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"scripts": {
1111
"test": "standard && hallmark && (nyc -s node test/self.js | faucet) && nyc report",
12-
"coverage": "nyc report --reporter=text-lcov | coveralls",
12+
"coverage": "nyc report -r lcovonly",
1313
"test-browsers": "airtap --verbose test/self.js > airtap.log",
1414
"test-browsers-local": "airtap -p local test/self.js",
1515
"hallmark": "hallmark --fix",
@@ -39,7 +39,6 @@
3939
"async-each": "^1.0.3",
4040
"browserify": "^17.0.0",
4141
"concat-stream": "^2.0.0",
42-
"coveralls": "^3.0.2",
4342
"delayed": "^2.0.0",
4443
"dependency-check": "^4.1.0",
4544
"encoding-down": "^7.0.0",

0 commit comments

Comments
 (0)