Skip to content

Commit

Permalink
ci: update to use GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke committed Feb 3, 2021
1 parent 24442fa commit 8f35ae9
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 19 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Tests

on: ['push', 'pull_request']

jobs:
ci:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: ['15.x']

name: Node ${{ matrix.php }} - ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Install npm dependencies
run: npm i

- name: PHPUnit Testing
run: npm test
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The MIT License (MIT)

Copyright (c) 2018 Owen Voke <owzie123@gmail.com>
Copyright (c) 2018 Owen Voke <development@voke.dev>

>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
33 changes: 22 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# arionum-js
# Arionum JS

[![Latest Version on npm][ico-version]][link-npm]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-travis]][link-travis]
[![Code Coverage][ico-code-quality]][link-code-quality]
[![Build Status][ico-github-actions]][link-github-actions]
[![Total Downloads][ico-downloads]][link-downloads]
[![Buy us a tree][ico-treeware-gifting]][link-treeware-gifting]

An API wrapper for the Arionum cryptocurrency node.

Expand All @@ -26,30 +26,41 @@ Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed re

## Contributing

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) and [CODE_OF_CONDUCT](.github/CODE_OF_CONDUCT.md) for details.
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

## Security

If you discover any security related issues, please email security@pxgamer.xyz instead of using the issue tracker.
If you discover any security related issues, please email security@voke.dev instead of using the issue tracker.

## Credits

- [pxgamer][link-author]
- [Owen Voke][link-author]
- [All Contributors][link-contributors]

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

## Treeware

You're free to use this package, but if it makes it to your production environment you are required to buy the world a tree.

It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to plant trees. If you support this package and contribute to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

You can buy trees [here][link-treeware-gifting].

Read more about Treeware at [treeware.earth][link-treeware].

[ico-version]: https://img.shields.io/npm/v/arionum-js.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/pxgamer/arionum-js/master.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/codecov/c/github/pxgamer/arionum-js.svg?style=flat-square
[ico-github-actions]: https://img.shields.io/github/workflow/status/owenvoke/arionum-js/Continuous%20Integration.svg?style=flat-square
[ico-downloads]: https://img.shields.io/npm/dt/arionum-js.svg?style=flat-square
[ico-treeware-gifting]: https://img.shields.io/badge/Treeware-%F0%9F%8C%B3-lightgreen?style=flat-square

[link-npm]: https://www.npmjs.com/package/arionum-js
[link-travis]: https://travis-ci.com/pxgamer/arionum-js
[link-code-quality]: https://codecov.io/gh/pxgamer/arionum-js
[link-github-actions]: https://github.com/owenvoke/arionum-js/actions
[link-downloads]: https://www.npmjs.com/package/arionum-js
[link-author]: https://github.com/pxgamer
[link-treeware]: https://treeware.earth
[link-treeware-gifting]: https://offset.earth/owenvoke?gift-trees
[link-author]: https://github.com/owenvoke
[link-contributors]: ../../contributors
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,22 @@
"description": "An API wrapper for the Arionum cryptocurrency node.",
"main": "src/index.js",
"scripts": {
"check-style": "standard \"src/**/*.js\"",
"fix-style": "standard \"src/**/*.js\" --fix"
"lint": "standard \"src/**/*.js\" --fix",
"test:lint": "standard \"src/**/*.js\"",
"test": [
"npm run test:lint"
]
},
"repository": {
"type": "git",
"url": "https://github.com/pxgamer/arionum-js.git"
"url": "https://github.com/owenvoke/arionum-js.git"
},
"author": "Owen Voke <owzie123@gmail.com>",
"author": "Owen Voke <development@voke.dev>",
"license": "MIT",
"dependencies": {
"axios": "^0.18.1"
"axios": "^0.21.1"
},
"devDependencies": {
"standard": "^12.0"
"standard": "^16.0"
}
}
2 changes: 1 addition & 1 deletion src/Arionum.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ class Arionum {
params
})
.then(response => {
let data = response.data
const data = response.data

if (data.status === API_STATUS_OK) {
return data.data
Expand Down

0 comments on commit 8f35ae9

Please sign in to comment.