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

Commit

Permalink
Move to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Aug 1, 2021
1 parent 1905d65 commit 6729959
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 111 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ updates:
ignore:
- dependency-name: dependency-check
- dependency-name: node-gyp
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
64 changes: 64 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Release
on:
push:
tags: ['*']
jobs:
build:
permissions:
contents: read
strategy:
matrix:
include:
- os: ubuntu-latest
build-group: linux-x64
- os: macos-latest
build-group: darwin-x64
- os: windows-latest
build-group: win32-x64
runs-on: ${{ matrix.os }}
name: Build ${{ matrix.build-group }}
env:
BUILD_GROUP: ${{ matrix.build-group }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up node
uses: actions/setup-node@v2
with:
node-version: 14
architecture: x64
- name: Install
run: npm install --ignore-scripts
- name: Prebuild
run: npm run prebuild-$BUILD_GROUP
shell: bash
- name: Prepare artifact
run: tar -zcvf $BUILD_GROUP.tar.gz -C prebuilds .
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ${{ env.BUILD_GROUP }}
path: ${{ env.BUILD_GROUP }}.tar.gz
retention-days: 1
release:
needs: build
permissions:
contents: write
runs-on: ubuntu-latest
name: Release
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download artifacts
uses: actions/download-artifact@v2
with:
path: artifacts
- name: Create GitHub release
uses: docker://antonyurchenko/git-release:v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: artifacts/*/*.tar.gz
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [10, 12, 14]
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} / Node ${{ matrix.node }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
architecture: x64
- 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
- name: Test Electron
if: ${{ matrix.node == '14' }}
uses: GabrielBB/xvfb-action@v1
with:
run: npm run test-electron
59 changes: 0 additions & 59 deletions .travis.yml

This file was deleted.

14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
> A low-level Node.js RocksDB binding. An [`abstract-leveldown`](https://github.com/Level/abstract-leveldown) compliant store.
[![level badge][level-badge]](https://github.com/Level/awesome)
[![npm](https://img.shields.io/npm/v/rocksdb.svg?label=&logo=npm)](https://www.npmjs.com/package/rocksdb)
[![npm](https://img.shields.io/npm/v/rocksdb.svg)](https://www.npmjs.com/package/rocksdb)
[![Node version](https://img.shields.io/node/v/rocksdb.svg)](https://www.npmjs.com/package/rocksdb)
[![Travis](https://img.shields.io/travis/com/Level/rocksdb.svg?logo=travis&label=)](https://travis-ci.com/Level/rocksdb)
[![AppVeyor](https://img.shields.io/appveyor/ci/Level/rocksdb.svg?logo=appveyor&label=)](https://ci.appveyor.com/project/Level/rocksdb)
[![npm downloads](https://img.shields.io/npm/dm/rocksdb.svg?label=dl)](https://www.npmjs.com/package/rocksdb)
[![Coverage Status](https://coveralls.io/repos/github/Level/rocksdb/badge.svg)](https://coveralls.io/github/Level/rocksdb)
[![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)
[![Test](https://img.shields.io/github/workflow/status/Level/rocksdb/Test?label=test)](https://github.com/Level/rocksdb/actions/workflows/test.yml)
[![Coverage](https://img.shields.io/codecov/c/github/Level/rocksdb?label=&logo=codecov&logoColor=fff)](https://codecov.io/gh/Level/rocksdb)
[![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
40 changes: 0 additions & 40 deletions appveyor.yml

This file was deleted.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
"test-gc": "node --expose-gc test/gc.js",
"test-electron": "electron test/electron.js",
"test-prebuild": "cross-env PREBUILDS_ONLY=1 npm t",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"coverage": "nyc report -r lcovonly",
"rebuild": "npm run install --build-from-source",
"prebuild": "prebuildify -t 8.14.0 --napi --strip",
"prebuild-linux": "prebuildify-cross -i centos7-devtoolset7 -t 8.14.0 --napi --strip",
"prebuild-linux-x64": "prebuildify-cross -i centos7-devtoolset7 -t 8.14.0 --napi --strip",
"prebuild-darwin-x64": "prebuildify -t 8.14.0 --napi --strip",
"prebuild-win32-x64": "prebuildify -t 8.14.0 --napi --strip",
"download-prebuilds": "prebuildify-ci download",
"hallmark": "hallmark --fix",
"dependency-check": "dependency-check --no-dev -i napi-macros . test/*.js",
Expand All @@ -26,7 +28,6 @@
},
"devDependencies": {
"async-each": "^1.0.3",
"coveralls": "^3.0.2",
"cross-env": "^7.0.3",
"delayed": "^2.0.0",
"dependency-check": "^4.1.0",
Expand All @@ -41,7 +42,7 @@
"nyc": "^15.0.0",
"prebuildify": "^4.1.1",
"prebuildify-ci": "^1.0.4",
"prebuildify-cross": "^4.0.0",
"prebuildify-cross": "^4.0.1",
"readfiletree": "^1.0.0",
"rimraf": "^3.0.0",
"standard": "^16.0.3",
Expand Down

0 comments on commit 6729959

Please sign in to comment.