Skip to content

Commit

Permalink
Merge 2ff4c39 into 2133f15
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonpereyra committed Sep 16, 2020
2 parents 2133f15 + 2ff4c39 commit 380f8f6
Show file tree
Hide file tree
Showing 9 changed files with 2,730 additions and 1,825 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build-status.yml
@@ -0,0 +1,23 @@
name: Build Status

on:
push:
branches: [ '*' ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm test
26 changes: 26 additions & 0 deletions .github/workflows/coverage-status.yml
@@ -0,0 +1,26 @@
name: Coverage Status

on: ["push", "pull_request"]

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v1

- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: npm install, make test-coverage
run: |
npm install
npm run test-ci
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/npm-publish.yml
@@ -0,0 +1,30 @@
name: NPM Publish

on:
push:
tags: [ '*' ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm i
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm i
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

7 changes: 7 additions & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Github Actions

### Changed
- Updated dependencies

## [2.0.2] - 2019-10-22
### Fixed
- `@janiscommerce/microservice-call` updated to fix a bug
Expand Down
2 changes: 1 addition & 1 deletion lib/event-emitter.js
Expand Up @@ -70,7 +70,7 @@ class EventEmitter {

try {

const response = await ms.post(this._eventsService, this._eventsNamespace, this._eventsMethod, { ...event, service: this._serviceName });
const response = await ms.call(this._eventsService, this._eventsNamespace, this._eventsMethod, { ...event, service: this._serviceName });

return {
result: response.statusCode === 200,
Expand Down

0 comments on commit 380f8f6

Please sign in to comment.