Skip to content

Commit

Permalink
Use Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jan 20, 2021
1 parent 346b741 commit b2c1a94
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: main
on:
- pull_request
- push
jobs:
main:
name: ${{matrix.node}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dcodeIO/setup-node-nvm@master
with:
node-version: ${{matrix.node}}
- run: npm install
- run: npm test
- uses: codecov/codecov-action@v1
strategy:
matrix:
node:
- lts/dubnium
- node
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

module.exports = bail

function bail(err) {
if (err) {
throw err
function bail(error) {
if (error) {
throw error
}
}
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ Throw a given error.

<!-- Definitions -->

[build-badge]: https://img.shields.io/travis/wooorm/bail.svg
[build-badge]: https://github.com/wooorm/bail/workflows/main/badge.svg

[build]: https://travis-ci.org/wooorm/bail
[build]: https://github.com/wooorm/bail/actions

[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/bail.svg

Expand Down

0 comments on commit b2c1a94

Please sign in to comment.