From fc8dec484c814d164593fc5a0d5904ad81870429 Mon Sep 17 00:00:00 2001 From: Stephen Yeargin Date: Fri, 27 Nov 2020 21:25:37 -0600 Subject: [PATCH 1/3] Add GitHub Actions CI We don't have permission to run Travis here, so let's use GitHub Actions. --- .github/workflows/node.js.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..673bd33 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,29 @@ +# This workflow will do a clean install of node dependencies, 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: + matrix: + node-version: [10.x, 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 ci + - run: npm run build --if-present + - run: npm test From e5b3978e3c928ac4914cc9db827064f449013056 Mon Sep 17 00:00:00 2001 From: Stephen Yeargin Date: Fri, 27 Nov 2020 21:32:03 -0600 Subject: [PATCH 2/3] Remove Travis CI config, swap badges on README --- .travis.yml | 11 ----------- README.md | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 788068c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: node_js -sudo: false -notifications: - email: false -node_js: - - "10" # stable - - "8" # LTS - - "6" # maintenance -cache: - directories: - - node_modules diff --git a/README.md b/README.md index d77dbfb..f9a167a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # hubot-youtube -[![npm version](https://badge.fury.io/js/hubot-youtube.svg)](http://badge.fury.io/js/hubot-youtube) [![Build Status](https://travis-ci.org/hubot-scripts/hubot-youtube.svg?branch=master)](https://travis-ci.org/hubot-scripts/hubot-youtube) +[![npm version](https://badge.fury.io/js/hubot-youtube.svg)](http://badge.fury.io/js/hubot-youtube) ![Node.js CI](https://github.com/hubot-scripts/hubot-youtube/workflows/Node.js%20CI/badge.svg) A Hubot script for searching YouTube. From 38bf10218ab62fb39f89532936d863ae36d5bcb5 Mon Sep 17 00:00:00 2001 From: Stephen Yeargin Date: Fri, 27 Nov 2020 21:33:05 -0600 Subject: [PATCH 3/3] Link to Actions tab --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f9a167a..1f047c9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # hubot-youtube -[![npm version](https://badge.fury.io/js/hubot-youtube.svg)](http://badge.fury.io/js/hubot-youtube) ![Node.js CI](https://github.com/hubot-scripts/hubot-youtube/workflows/Node.js%20CI/badge.svg) +[![npm version](https://badge.fury.io/js/hubot-youtube.svg)](http://badge.fury.io/js/hubot-youtube) [![Node.js CI](https://github.com/hubot-scripts/hubot-youtube/workflows/Node.js%20CI/badge.svg)](https://github.com/hubot-scripts/hubot-youtube/actions) A Hubot script for searching YouTube.