Skip to content

Commit

Permalink
feat: drop suppport for node 10 (#3)
Browse files Browse the repository at this point in the history
- remove travis and semantic release for releasing
  • Loading branch information
gkampitakis authored May 6, 2021
1 parent eb9063d commit fabc317
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 50 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [12, 13, 14, 16]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: |
npm install
- name: Run Tests
run: |
npm test
16 changes: 0 additions & 16 deletions .releaserc.json

This file was deleted.

25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions lib/src/requestController.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const equal = require('fast-deep-equal');
const PromisesExtensions = require('promises-extension');

async function Controller (request, reply, payload) {
const { stats, info, exposeFailure } = payload;
Expand All @@ -21,7 +20,7 @@ async function computeHealthChecks (checks, exposeFailure) {

const promises = Object.values(checks).map(({ fn }) => fn());

const results = await PromisesExtensions.allSettled(promises);
const results = await Promise.allSettled(promises);

checks.forEach(({ label, evaluation }, index) => {
if (results[index].status === 'rejected') {
Expand Down
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"test": "npm run lint && jest lib/**/*.js",
"clean": "rm -rf /coverage",
"lint": "semistandard | snazzy",
"example": "node example/server.js",
"release": "semantic-release"
"example": "node example/server.js"
},
"keywords": [
"fastify",
Expand All @@ -30,16 +29,12 @@
},
"dependencies": {
"fast-deep-equal": "^3.1.3",
"fastify-plugin": "^3.0.0",
"promises-extension": "^2.0.0"
"fastify-plugin": "^3.0.0"
},
"devDependencies": {
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"fastify": "^3.8.0",
"jest": "^26.6.3",
"mongodb": "^3.6.3",
"semantic-release": "^17.2.2",
"semistandard": "^16.0.0",
"snazzy": "^9.0.0"
},
Expand Down

0 comments on commit fabc317

Please sign in to comment.