Skip to content

Commit

Permalink
Move to GitHub Actions (#764)
Browse files Browse the repository at this point in the history
Ref Level/community#99

Bumps prebuildify-cross from 4.0.0 to 4.0.1
Ref prebuild/prebuildify-cross#9
  • Loading branch information
vweevers authored Aug 1, 2021
1 parent e1c3463 commit f8fff94
Show file tree
Hide file tree
Showing 8 changed files with 133 additions and 120 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
76 changes: 76 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Release
on:
push:
tags: ['*']
jobs:
build:
permissions:
contents: read
strategy:
matrix:
include:
- os: ubuntu-latest
arch: x64
build-group: linux-x64
- os: ubuntu-latest
arch: x64
build-group: linux-arm
- os: ubuntu-latest
arch: x64
build-group: android-arm
- os: macos-latest
arch: x64
build-group: darwin-x64
- os: windows-latest
arch: x86
build-group: win32-x86
- os: windows-latest
arch: x64
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: ${{ matrix.arch }}
- 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
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [10, 12, 14]
arch: [x86, x64]
exclude:
- { os: ubuntu-latest, arch: x86 }
- { os: macos-latest, arch: x86 }
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} / Node ${{ matrix.node }} ${{ matrix.arch }}
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: ${{ matrix.arch }}
- name: Install
run: npm install
- name: Test
run: npm test
- name: Coverage
run: npm run coverage
- name: Codecov
uses: codecov/codecov-action@v1
with:
file: coverage/lcov.info
- name: Test Electron
if: ${{ matrix.node == '14' }}
uses: GabrielBB/xvfb-action@v1
with:
run: npm run test-electron
66 changes: 0 additions & 66 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ _**If you are upgrading:** please see [`UPGRADING.md`](UPGRADING.md)._

- Callback is not optional for `.close()` ([**@rvagg**](https://github.com/rvagg))

## 0.0.0 - 2013-01-06
## [0.0.0] - 2013-01-06

:seedling: First release. Extracted from `levelup` as a stand-alone package ([**@rvagg**](https://github.com/rvagg))

Expand Down Expand Up @@ -1289,3 +1289,5 @@ _**If you are upgrading:** please see [`UPGRADING.md`](UPGRADING.md)._
[0.0.2]: https://github.com/Level/leveldown/compare/0.0.1...0.0.2

[0.0.1]: https://github.com/Level/leveldown/compare/0.0.0...0.0.1

[0.0.0]: https://github.com/Level/leveldown/releases/tag/0.0.0
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
[![level badge][level-badge]](https://github.com/Level/awesome)
[![npm](https://img.shields.io/npm/v/leveldown.svg?label=&logo=npm)](https://www.npmjs.com/package/leveldown)
[![Node version](https://img.shields.io/node/v/leveldown.svg)](https://www.npmjs.com/package/leveldown)
[![Travis](https://img.shields.io/travis/com/Level/leveldown.svg?logo=travis&label=)](https://travis-ci.com/Level/leveldown)
[![AppVeyor](https://img.shields.io/appveyor/ci/Level/leveldown.svg?logo=appveyor&label=)](https://ci.appveyor.com/project/Level/leveldown)
[![Test](https://github.com/Level/leveldown/actions/workflows/test.yml/badge.svg)](https://github.com/Level/leveldown/actions/workflows/test.yml)
[![Cirrus CI](https://img.shields.io/cirrus/github/Level/leveldown?logo=cirrus-ci&label=)](https://cirrus-ci.com/github/Level/leveldown)
[![npm](https://img.shields.io/npm/dm/leveldown.svg?label=dl)](https://www.npmjs.com/package/leveldown)
[![Coverage Status](https://coveralls.io/repos/github/Level/leveldown/badge.svg)](https://coveralls.io/github/Level/leveldown)
[![Coverage Status](https://codecov.io/gh/Level/leveldown/branch/master/graph/badge.svg)](https://codecov.io/gh/Level/leveldown)
[![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 Down Expand Up @@ -487,12 +486,11 @@ $ git submodule update --init --recursive

1. Increment the version: `npm version ..`
2. Push to GitHub: `git push --follow-tags`
3. Wait for Travis and AppVeyor builds to complete
3. Wait for CI to complete
4. Download prebuilds into `./prebuilds`: `npm run download-prebuilds`
5. Optionally verify loading a prebuild: `npm run test-prebuild`
6. Optionally verify which files npm will include: `canadian-pub`
7. Add changelog to the GitHub release
8. Finally: `npm publish`
7. Finally: `npm publish`

## Donate

Expand Down
42 changes: 0 additions & 42 deletions appveyor.yml

This file was deleted.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,19 @@
"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",
"download-prebuilds": "prebuildify-ci download",
"hallmark": "hallmark --fix",
"dependency-check": "dependency-check --no-dev -i napi-macros . test/*.js",
"prepublishOnly": "npm run dependency-check",
"prebuild-arm": "npm run prebuild-linux-arm && npm run prebuild-android-arm",
"prebuild-linux-arm": "prebuildify-cross -i linux-armv6 -i linux-armv7 -i linux-arm64 -t 8.14.0 --napi --strip",
"prebuild-android-arm": "prebuildify-cross -i android-armv7 -i android-arm64 -t 8.14.0 --napi --strip",
"prebuild-linux-x64": "prebuildify-cross -i centos7-devtoolset7 -i alpine -t 8.14.0 --napi --strip",
"prebuild-darwin-x64": "prebuildify -t 8.14.0 --napi --strip"
"prebuild-darwin-x64": "prebuildify -t 8.14.0 --napi --strip",
"prebuild-win32-x86": "prebuildify -t 8.14.0 --napi --strip",
"prebuild-win32-x64": "prebuildify -t 8.14.0 --napi --strip"
},
"dependencies": {
"abstract-leveldown": "^7.0.0",
Expand All @@ -30,7 +31,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 @@ -46,7 +46,7 @@
"nyc": "^15.0.0",
"prebuildify": "^4.1.0",
"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 f8fff94

Please sign in to comment.