Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): converted travis workflow to github action #718

Merged
merged 5 commits into from
Apr 20, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ updates:
interval: monthly
ignore:
- dependency-name: dependency-check
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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: Use node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Install
run: npm install
- name: Test
if: ${{ matrix.node != 14}}
vweevers marked this conversation as resolved.
Show resolved Hide resolved
run: npm test
- name: Test Browsers
if: ${{ matrix.node == 14}}
env:
SAUCE_CONNECT_DOWNLOAD_ON_INSTALL: true
vweevers marked this conversation as resolved.
Show resolved Hide resolved
run: npm run test-browsers
- name: Coverage
run: npm run coverage
- name: Codecov
uses: codecov/codecov-action@v1
with:
file: coverage/lcov.info
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ yarn.lock
package-lock.json
.nyc_output/
airtap.log
coverage/
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

66 changes: 34 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Node version](https://img.shields.io/node/v/levelup.svg)](https://www.npmjs.com/package/levelup)
[![Travis](https://img.shields.io/travis/com/Level/levelup.svg?logo=travis&label=)](https://travis-ci.com/Level/levelup)
marcuslyons marked this conversation as resolved.
Show resolved Hide resolved
[![npm](https://img.shields.io/npm/dm/levelup.svg?label=dl)](https://www.npmjs.com/package/levelup)
[![Coverage Status](https://coveralls.io/repos/github/Level/levelup/badge.svg)](https://coveralls.io/github/Level/levelup)
[![Coverage Status](https://codecov.io/gh/Level/levelup/branch/master/graph/badge.svg)](https://codecov.io/gh/Level/levelup)
[![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 All @@ -14,37 +14,39 @@

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

- [Introduction](#introduction)
- [Supported Platforms](#supported-platforms)
- [Usage](#usage)
- [API](#api)
- [Special Notes](#special-notes)
- [`levelup(db[, options[, callback]])`](#levelupdb-options-callback)
- [`db.supports`](#dbsupports)
- [`db.open([options][, callback])`](#dbopenoptions-callback)
- [`db.close([callback])`](#dbclosecallback)
- [`db.put(key, value[, options][, callback])`](#dbputkey-value-options-callback)
- [`db.get(key[, options][, callback])`](#dbgetkey-options-callback)
- [`db.del(key[, options][, callback])`](#dbdelkey-options-callback)
- [`db.batch(array[, options][, callback])` _(array form)_](#dbbatcharray-options-callback-array-form)
- [`db.batch()` _(chained form)_](#dbbatch-chained-form)
- [`db.isOpen()`](#dbisopen)
- [`db.isClosed()`](#dbisclosed)
- [`db.createReadStream([options])`](#dbcreatereadstreamoptions)
- [`db.createKeyStream([options])`](#dbcreatekeystreamoptions)
- [`db.createValueStream([options])`](#dbcreatevaluestreamoptions)
- [`db.iterator([options])`](#dbiteratoroptions)
- [`db.clear([options][, callback])`](#dbclearoptions-callback)
- [What happened to `db.createWriteStream`?](#what-happened-to-dbcreatewritestream)
- [Promise Support](#promise-support)
- [Events](#events)
- [Multi-process Access](#multi-process-access)
- [Contributing](#contributing)
- [Big Thanks](#big-thanks)
- [Donate](#donate)
- [Backers](#backers)
- [Sponsors](#sponsors)
- [License](#license)
- [levelup](#levelup)
- [Table of Contents](#table-of-contents)
- [Introduction](#introduction)
- [Supported Platforms](#supported-platforms)
- [Usage](#usage)
- [API](#api)
- [Special Notes](#special-notes)
- [`levelup(db[, options[, callback]])`](#levelupdb-options-callback)
- [`db.supports`](#dbsupports)
- [`db.open(options)`](#dbopenoptions)
- [`db.close([callback])`](#dbclosecallback)
- [`db.put(key, value, options)`](#dbputkey-value-options)
- [`db.get(key, options)`](#dbgetkey-options)
- [`db.del(key, options)`](#dbdelkey-options)
- [`db.batch(array, options)` _(array form)_](#dbbatcharray-options-array-form)
- [`db.batch()` _(chained form)_](#dbbatch-chained-form)
- [`db.isOpen()`](#dbisopen)
- [`db.isClosed()`](#dbisclosed)
- [`db.createReadStream([options])`](#dbcreatereadstreamoptions)
- [`db.createKeyStream([options])`](#dbcreatekeystreamoptions)
- [`db.createValueStream([options])`](#dbcreatevaluestreamoptions)
- [`db.iterator([options])`](#dbiteratoroptions)
- [`db.clear(options)`](#dbclearoptions)
- [What happened to `db.createWriteStream`?](#what-happened-to-dbcreatewritestream)
- [Promise Support](#promise-support)
- [Events](#events)
- [Multi-process Access](#multi-process-access)
- [Contributing](#contributing)
- [Big Thanks](#big-thanks)
- [Donate](#donate)
- [Backers](#backers)
- [Sponsors](#sponsors)
- [License](#license)

</details>

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"scripts": {
"test": "standard && hallmark && (nyc -s node test/self.js | faucet) && nyc report",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"coverage": "nyc report -r lcovonly",
"test-browsers": "airtap --verbose test/self.js > airtap.log",
"test-browsers-local": "airtap -p local test/self.js",
"hallmark": "hallmark --fix",
Expand Down Expand Up @@ -39,7 +39,6 @@
"async-each": "^1.0.3",
"browserify": "^17.0.0",
"concat-stream": "^2.0.0",
"coveralls": "^3.0.2",
"delayed": "^2.0.0",
"dependency-check": "^4.1.0",
"encoding-down": "^7.0.0",
Expand Down