From 6547d2c1e5bd098be51d6d11fca9a362b23d09e6 Mon Sep 17 00:00:00 2001 From: David Luecke Date: Sun, 9 Feb 2020 11:25:13 -0800 Subject: [PATCH] chore(test): Set up GitHub action for CI (#1803) --- .github/lock.yml | 26 ------------------------ .github/workflows/nodejs.yml | 6 +++++- .travis.yml | 21 ------------------- packages/adapter-commons/README.md | 2 +- packages/adapter-tests/README.md | 2 +- packages/authentication-client/README.md | 2 +- packages/authentication-local/README.md | 2 +- packages/authentication-oauth/README.md | 2 +- packages/authentication/README.md | 2 +- packages/client/README.md | 2 +- packages/commons/README.md | 2 +- packages/configuration/README.md | 2 +- packages/errors/README.md | 2 +- packages/express/README.md | 2 +- packages/feathers/readme.md | 2 +- packages/primus-client/README.md | 2 +- packages/primus/README.md | 2 +- packages/rest-client/README.md | 2 +- packages/socketio-client/README.md | 2 +- packages/socketio/README.md | 2 +- packages/tests/README.md | 2 +- packages/transport-commons/README.md | 2 +- readme.md | 2 +- 23 files changed, 25 insertions(+), 68 deletions(-) delete mode 100644 .github/lock.yml delete mode 100644 .travis.yml diff --git a/.github/lock.yml b/.github/lock.yml deleted file mode 100644 index 8edab61a7f..0000000000 --- a/.github/lock.yml +++ /dev/null @@ -1,26 +0,0 @@ -# Configuration for Lock Threads - https://github.com/dessant/lock-threads - -# Number of days of inactivity before a closed issue or pull request is locked -daysUntilLock: 90 - -# Skip issues and pull requests created before a given timestamp. Timestamp must -# follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable -skipCreatedBefore: false - -# Issues and pull requests with these labels will be ignored. Set to `[]` to disable -exemptLabels: [] - -# Label to add before locking, such as `outdated`. Set to `false` to disable -lockLabel: false - -# Comment to post before locking. Set to `false` to disable -lockComment: > - This issue has been automatically locked since there has not been - any recent activity after it was closed. Please open a new issue - with a link to this issue for related bugs. - -# Assign `resolved` as the reason for locking. Set to `false` to disable -setLockReason: true - -# Limit to only `issues` or `pulls` -only: issues diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 56fdb84e70..74edf6734b 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -1,4 +1,4 @@ -name: Node.js CI +name: CI on: [push] @@ -17,7 +17,11 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} + - run: npm install -g codeclimate-test-reporter - run: npm install - run: npm test env: CI: true + - run: codeclimate-test-reporter < coverage/lcov.info + env: + CODECLIMATE_REPO_TOKEN: ${{ secrets.codeclimate }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d3a302932c..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -sudo: required -language: node_js -install: npm install -script: npm test -node_js: - - node - - 10 -addons: - code_climate: - repo_token: 9840b8b56f6d10209b3478d41f7ba5102d02981435df129bb18554a529359c62 -before_install: - - 'sudo apt-get install libgconf-2-4' -before_script: - - 'npm install -g codeclimate-test-reporter' -after_script: - - 'codeclimate-test-reporter < coverage/lcov.info' -notifications: - email: false - slack: - rooms: - secure: Y7GyAUEjnjzyazj3zo3PXcl9Z1TN7SGjfUGQacJ+U/pCKfZKzgUhezZ5hTMz71bxL6/+2TuvKHQM3NQgrgR5JhdsPlrJfIW9FK2rNNPBN9p/DWZGv2bjEKPCcstdkuF/1NCru8up9092pZ3Fa8n6bjXicswCMVKjAmYrXqsWEMU= diff --git a/packages/adapter-commons/README.md b/packages/adapter-commons/README.md index 723b92bac6..868f063778 100644 --- a/packages/adapter-commons/README.md +++ b/packages/adapter-commons/README.md @@ -1,6 +1,6 @@ # Feathers Adapter Commons -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/adapter-commons)](https://david-dm.org/feathersjs/feathers?path=packages/adapter-commons) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/adapter-commons.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/adapter-commons) diff --git a/packages/adapter-tests/README.md b/packages/adapter-tests/README.md index 7f1072d95e..7a552f9666 100644 --- a/packages/adapter-tests/README.md +++ b/packages/adapter-tests/README.md @@ -1,6 +1,6 @@ # Feathers Adapter Tests -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/adapter-tests)](https://david-dm.org/feathersjs/feathers?path=packages/adapter-tests) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/adapter-commons.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/adapter-commons) diff --git a/packages/authentication-client/README.md b/packages/authentication-client/README.md index 82df55fa6c..f9df012857 100644 --- a/packages/authentication-client/README.md +++ b/packages/authentication-client/README.md @@ -1,6 +1,6 @@ # @feathersjs/authentication-client -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/authentication-client)](https://david-dm.org/feathersjs/feathers?path=packages/authentication-client) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/authentication-client.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/authentication-client) diff --git a/packages/authentication-local/README.md b/packages/authentication-local/README.md index 8138fbd73c..5a5bf406e1 100644 --- a/packages/authentication-local/README.md +++ b/packages/authentication-local/README.md @@ -1,6 +1,6 @@ # @feathersjs/authentication-local -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/authentication-local)](https://david-dm.org/feathersjs/feathers?path=packages/authentication-local) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/authentication-local.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/authentication-local) diff --git a/packages/authentication-oauth/README.md b/packages/authentication-oauth/README.md index 9870e705ac..512d2ab44f 100644 --- a/packages/authentication-oauth/README.md +++ b/packages/authentication-oauth/README.md @@ -1,6 +1,6 @@ # @feathersjs/authentication-oauth -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/authentication-oauth)](https://david-dm.org/feathersjs/feathers?path=packages/authentication-oauth) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/authentication-oauth.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/authentication-oauth) diff --git a/packages/authentication/README.md b/packages/authentication/README.md index e0f48bd707..2d0a28501a 100644 --- a/packages/authentication/README.md +++ b/packages/authentication/README.md @@ -1,6 +1,6 @@ # @feathersjs/authentication -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/authentication)](https://david-dm.org/feathersjs/feathers?path=packages/authentication) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/authentication.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/authentication) diff --git a/packages/client/README.md b/packages/client/README.md index f09f3e2348..46bd1ccf33 100644 --- a/packages/client/README.md +++ b/packages/client/README.md @@ -1,6 +1,6 @@ # @feathersjs/client -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Dependency Status](https://img.shields.io/david/feathersjs/client.svg?style=flat-square)](https://david-dm.org/feathersjs/client) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/client.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/client) diff --git a/packages/commons/README.md b/packages/commons/README.md index 714aa2d3f8..e25d8fa181 100644 --- a/packages/commons/README.md +++ b/packages/commons/README.md @@ -1,6 +1,6 @@ # Feathers Commons -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/commons)](https://david-dm.org/feathersjs/feathers?path=packages/commons) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/commons.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/commons) diff --git a/packages/configuration/README.md b/packages/configuration/README.md index afe9f95801..55207ac319 100644 --- a/packages/configuration/README.md +++ b/packages/configuration/README.md @@ -1,6 +1,6 @@ # @feathersjs/configuration -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/configuration)](https://david-dm.org/feathersjs/feathers?path=packages/configuration) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/configuration.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/configuration) diff --git a/packages/errors/README.md b/packages/errors/README.md index 94a70e75ed..936004f627 100644 --- a/packages/errors/README.md +++ b/packages/errors/README.md @@ -1,6 +1,6 @@ # @feathersjs/errors -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/errors)](https://david-dm.org/feathersjs/feathers?path=packages/errors) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/errors.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/errors) diff --git a/packages/express/README.md b/packages/express/README.md index 076899e97a..f144c39122 100644 --- a/packages/express/README.md +++ b/packages/express/README.md @@ -1,6 +1,6 @@ # @feathersjs/express -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/express)](https://david-dm.org/feathersjs/feathers?path=packages/express) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/express.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/express) diff --git a/packages/feathers/readme.md b/packages/feathers/readme.md index 9bd63a7c96..a56fd5e6cc 100644 --- a/packages/feathers/readme.md +++ b/packages/feathers/readme.md @@ -3,7 +3,7 @@ ## A framework for real-time applications and REST APIs with JavaScript and TypeScript [![Greenkeeper badge](https://badges.greenkeeper.io/feathersjs/feathers.svg)](https://greenkeeper.io/) -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Maintainability](https://api.codeclimate.com/v1/badges/cb5ec42a2d0cc1a47a02/maintainability)](https://codeclimate.com/github/feathersjs/feathers/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/cb5ec42a2d0cc1a47a02/test_coverage)](https://codeclimate.com/github/feathersjs/feathers/test_coverage) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/feathers.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/feathers) diff --git a/packages/primus-client/README.md b/packages/primus-client/README.md index 3dae1a9131..9c8ad9129e 100644 --- a/packages/primus-client/README.md +++ b/packages/primus-client/README.md @@ -1,6 +1,6 @@ # @feathersjs/primus-client -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/primus-client)](https://david-dm.org/feathersjs/feathers?path=packages/primus-client) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/primus-client.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/primus-client) diff --git a/packages/primus/README.md b/packages/primus/README.md index 83d27c6120..a0a189f74e 100644 --- a/packages/primus/README.md +++ b/packages/primus/README.md @@ -1,6 +1,6 @@ # @feathersjs/primus -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/primus)](https://david-dm.org/feathersjs/feathers?path=packages/primus) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/primus.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/primus) diff --git a/packages/rest-client/README.md b/packages/rest-client/README.md index d74490e080..85f2621cf7 100644 --- a/packages/rest-client/README.md +++ b/packages/rest-client/README.md @@ -1,6 +1,6 @@ # @feathersjs/rest-client -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/rest-client)](https://david-dm.org/feathersjs/feathers?path=packages/rest-client) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/rest-client.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/rest-client) diff --git a/packages/socketio-client/README.md b/packages/socketio-client/README.md index 3ac2f41284..38bbbc4129 100644 --- a/packages/socketio-client/README.md +++ b/packages/socketio-client/README.md @@ -1,6 +1,6 @@ # @feathersjs/socketio-client -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/socketio-client)](https://david-dm.org/feathersjs/feathers?path=packages/socketio-client) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/socketio-client.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/socketio-client) diff --git a/packages/socketio/README.md b/packages/socketio/README.md index 08434cab04..8b4aba5f6d 100644 --- a/packages/socketio/README.md +++ b/packages/socketio/README.md @@ -1,6 +1,6 @@ # @feathersjs/socketio -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/socketio)](https://david-dm.org/feathersjs/feathers?path=packages/socketio) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/socketio.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/socketio) diff --git a/packages/tests/README.md b/packages/tests/README.md index e4f49b63ed..05d9b3e1f8 100644 --- a/packages/tests/README.md +++ b/packages/tests/README.md @@ -1,6 +1,6 @@ # @feathersjs/tests -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/express)](https://david-dm.org/feathersjs/feathers?path=packages/koa) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/tests.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/tests) diff --git a/packages/transport-commons/README.md b/packages/transport-commons/README.md index f84084fd95..1140df064f 100644 --- a/packages/transport-commons/README.md +++ b/packages/transport-commons/README.md @@ -1,6 +1,6 @@ # @feathersjs/transport-commons -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Dependency Status](https://img.shields.io/david/feathersjs/feathers.svg?style=flat-square&path=packages/transport-commons)](https://david-dm.org/feathersjs/feathers?path=packages/transport-commons) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/transport-commons.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/transport-commons) diff --git a/readme.md b/readme.md index 9bd63a7c96..a56fd5e6cc 100644 --- a/readme.md +++ b/readme.md @@ -3,7 +3,7 @@ ## A framework for real-time applications and REST APIs with JavaScript and TypeScript [![Greenkeeper badge](https://badges.greenkeeper.io/feathersjs/feathers.svg)](https://greenkeeper.io/) -[![Build Status](https://travis-ci.org/feathersjs/feathers.svg?branch=master)](https://travis-ci.org/feathersjs/feathers) +[![CI](https://github.com/feathersjs/feathers/workflows/Node.js%20CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3A%22Node.js+CI%22) [![Maintainability](https://api.codeclimate.com/v1/badges/cb5ec42a2d0cc1a47a02/maintainability)](https://codeclimate.com/github/feathersjs/feathers/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/cb5ec42a2d0cc1a47a02/test_coverage)](https://codeclimate.com/github/feathersjs/feathers/test_coverage) [![Download Status](https://img.shields.io/npm/dm/@feathersjs/feathers.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/feathers)