Skip to content

Commit

Permalink
Move CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
charmander committed Dec 1, 2019
1 parent dd41ab9 commit 5cf2da4
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 24 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Node CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.x, 13.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: install dependencies and test
run: |
npm install --no-save --ignore-scripts
tmp=$(mktemp --directory)
bash -O dotglob -O extglob -c 'mv !(node_modules|test.js) "$1"/' bash "$tmp"
pack=$(npm pack "$tmp")
node -p '"sha512-" + Buffer.from(process.argv[1], "hex").toString("base64")' $(sha512sum -- "$pack")
tar --strip-components=1 -x -v -f "$pack"
npm install --no-save
node test
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# bcrypt-small

[![Build status][ci-image]][ci]

bcrypt-small provides functions to asynchronously create and verify password
hashes.

Expand Down Expand Up @@ -64,7 +62,3 @@ Compares a password to a hash. The callback receives two arguments:
### bcrypt.getRounds(hash)

Returns the number of rounds used to produce the given hash.


[ci]: https://travis-ci.org/charmander/bcrypt-small
[ci-image]: https://api.travis-ci.org/charmander/bcrypt-small.svg

0 comments on commit 5cf2da4

Please sign in to comment.