Skip to content

Commit

Permalink
Node v16 Update
Browse files Browse the repository at this point in the history
- Added GH actions
- Migrated mocha.opts .eslintrc.json .eslintignore to package.json
- Removed .travis.yml
- package.json:
  - Updated dependencies to latest
  - Bumped to 3.0.0
  - Store configs for eslint and mocha
- README.md: Updated docs
  • Loading branch information
kfitzgerald committed Mar 22, 2022
1 parent 3733d41 commit 2383b37
Show file tree
Hide file tree
Showing 11 changed files with 5,471 additions and 77 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

33 changes: 0 additions & 33 deletions .eslintrc.json

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish Docs

on:
workflow_dispatch:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Configure AWS
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.DOCS_KEY }}
aws-secret-access-key: ${{ secrets.DOCS_SECRET }}
aws-region: us-east-1

- name: Copy Docs
run: aws s3 cp ./README.md s3://okanjo-docs/okanjo-conductor/ --acl public-read --content-type "text/plain; charset=utf-8" --content-encoding text
38 changes: 38 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: [12.x, 14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- run: npm ci
- run: npm run report

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ coverage
node_modules
.idea
*.tgz
.nyc_output
package-lock.json
.nyc_output
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ coverage
.idea
docs
.eslint*
.travis.yml
.travis.yml
.github
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Okanjo Conductor

[![Build Status](https://travis-ci.org/Okanjo/okanjo-conductor.svg?branch=master)](https://travis-ci.org/Okanjo/okanjo-conductor) [![Coverage Status](https://coveralls.io/repos/github/Okanjo/okanjo-conductor/badge.svg?branch=master)](https://coveralls.io/github/Okanjo/okanjo-conductor?branch=master)
[![Node.js CI](https://github.com/Okanjo/okanjo-conductor/actions/workflows/node.js.yml/badge.svg)](https://github.com/Okanjo/okanjo-conductor/actions/workflows/node.js.yml) [![Coverage Status](https://coveralls.io/repos/github/Okanjo/okanjo-conductor/badge.svg?branch=master)](https://coveralls.io/github/Okanjo/okanjo-conductor?branch=master)

Module for handing batch jobs across multiple worker processes via Cluster.

Expand All @@ -14,6 +14,10 @@ npm install okanjo-conductor

## Breaking Changes

### v3.0.0
* Updated dependencies to latest
* Supports Node v16

### v2.0.0
* ConductorWorker – master messaging callbacks are now of signature `(err, data)` instead of `(data)`
* `fireRequestCallback(name, err, data)`
Expand Down
Loading

0 comments on commit 2383b37

Please sign in to comment.