Skip to content

Commit

Permalink
Move to GitHub Actions and update metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Sep 12, 2021
1 parent f7ead98 commit 371eb0e
Show file tree
Hide file tree
Showing 9 changed files with 74 additions and 53 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: monthly
ignore:
- dependency-name: dependency-check
- dependency-name: standard
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Release
on:
push:
tags: ['*']
permissions:
contents: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Create GitHub release
uses: docker://antonyurchenko/git-release:v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [6, 8, 10]
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
run: npm test
- name: Coverage
run: npm run coverage
- name: Codecov
uses: codecov/codecov-action@v2
with:
file: coverage/lcov.info
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Changelog
17 changes: 0 additions & 17 deletions CONTRIBUTORS.md

This file was deleted.

4 changes: 2 additions & 2 deletions LICENSE.md → LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The MIT License (MIT)
The MIT License (MIT)

**Copyright © 2013-present Rod Vagg and [Contributors](CONTRIBUTORS.md).**
Copyright © 2013 Rod Vagg and the contributors to level-ttl.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
25 changes: 8 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
> Add a `ttl` (time-to-live) option to [`levelup`][levelup] for `put()` and `batch()`.
[![level badge][level-badge]](https://github.com/Level/awesome)
[![npm](https://img.shields.io/npm/v/level-ttl.svg?label=&logo=npm)](https://www.npmjs.com/package/level-ttl)
[![npm](https://img.shields.io/npm/v/level-ttl.svg)](https://www.npmjs.com/package/level-ttl)
[![Node version](https://img.shields.io/node/v/level-ttl.svg)](https://www.npmjs.com/package/level-ttl)
[![Travis](https://img.shields.io/travis/com/Level/level-ttl.svg?logo=travis&label=)](https://travis-ci.com/Level/level-ttl)
[![Coverage Status](https://coveralls.io/repos/github/Level/level-ttl/badge.svg)](https://coveralls.io/github/Level/level-ttl)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![npm](https://img.shields.io/npm/dm/level-ttl.svg?label=dl)](https://www.npmjs.com/package/level-ttl)
[![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)
[![Test](https://img.shields.io/github/workflow/status/Level/level-ttl/Test?label=test)](https://github.com/Level/level-ttl/actions/workflows/test.yml)
[![Coverage](https://img.shields.io/codecov/c/github/Level/level-ttl?label=&logo=codecov&logoColor=fff)](https://codecov.io/gh/Level/level-ttl)
[![Standard](https://img.shields.io/badge/standard-informational?logo=javascript&logoColor=fff)](https://standardjs.com)
[![Common Changelog](https://common-changelog.org/badge.svg)](https://common-changelog.org)
[![Donate](https://img.shields.io/badge/donate-orange?logo=open-collective&logoColor=fff)](https://opencollective.com/level)

## Table of Contents

Expand Down Expand Up @@ -133,19 +132,11 @@ See the [Contribution Guide](https://github.com/Level/community/blob/master/CONT

## Donate

To sustain [`Level`](https://github.com/Level) and its activities, become a backer or sponsor on [Open Collective](https://opencollective.com/level). Your logo or avatar will be displayed on our 28+ [GitHub repositories](https://github.com/Level) and [npm](https://www.npmjs.com/) packages. 💖

### Backers

[![Open Collective backers](https://opencollective.com/level/backers.svg?width=890)](https://opencollective.com/level)

### Sponsors

[![Open Collective sponsors](https://opencollective.com/level/sponsors.svg?width=890)](https://opencollective.com/level)
Support us with a monthly donation on [Open Collective](https://opencollective.com/level) and help us continue our work.

## License

[MIT](LICENSE.md) © 2013-present Rod Vagg and [Contributors](CONTRIBUTORS.md).
[MIT](LICENSE)

[level-badge]: https://leveljs.org/img/badge.svg

Expand Down
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,25 @@
"main": "./level-ttl.js",
"scripts": {
"test": "standard && hallmark && (nyc -s node test.js | faucet) && nyc report",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"coverage": "nyc report -r lcovonly",
"hallmark": "hallmark --fix",
"dependency-check": "dependency-check . test.js",
"prepublishOnly": "npm run dependency-check"
},
"files": [
"encoding.js",
"level-ttl.js"
],
"dependencies": {
"after": "~0.8.2",
"lock": "~1.1.0",
"xtend": "~4.0.1"
},
"devDependencies": {
"bytewise": ">=0.8",
"coveralls": "^3.0.2",
"dependency-check": "^3.3.0",
"faucet": "^0.0.1",
"hallmark": "^2.0.0",
"level-community": "^3.0.0",
"level-concat-iterator": "^2.0.0",
"level-test": "^6.0.0",
"nyc": "^14.0.0",
Expand All @@ -35,9 +37,6 @@
"tape": "^4.3.0"
},
"peerDependencies": {},
"hallmark": {
"community": "level-community"
},
"repository": {
"type": "git",
"url": "https://github.com/Level/level-ttl.git"
Expand Down

0 comments on commit 371eb0e

Please sign in to comment.