From c7cb01594f51702daeb17183b7398fa576dd8885 Mon Sep 17 00:00:00 2001 From: Bryce Kahle Date: Mon, 4 Nov 2019 12:35:02 -0500 Subject: [PATCH 1/3] Add nodejs.yml for GH Actions --- .github/workflows/nodejs.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 00000000..fdf7912d --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,25 @@ +name: Node CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [8.x, 10.x, 12.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, build, and test + run: | + npm ci + ./scripts/test.sh + env: + CI: true From cb661af73ab0e733f5a597ab93e736ae3f3a1eba Mon Sep 17 00:00:00 2001 From: Bryce Kahle Date: Mon, 4 Nov 2019 12:50:24 -0500 Subject: [PATCH 2/3] Install virtualenv --- .github/workflows/nodejs.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index fdf7912d..10e66940 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -13,6 +13,13 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: actions/setup-python@v1 + with: + python-version: '2.x' + architecture: 'x64' + - name: Install virtualenv + run: | + pip install virtualenv - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: From 6bbbbbe145ec8970405bedc7b324bc58a69e28cf Mon Sep 17 00:00:00 2001 From: Bryce Kahle Date: Mon, 4 Nov 2019 13:05:49 -0500 Subject: [PATCH 3/3] Remove Travis references --- .travis.yml | 4 ---- README.md | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index cfed9506..00000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -dist: trusty -sudo: false -language: node_js -script: ./scripts/test.sh diff --git a/README.md b/README.md index c0ae854b..0a292ff9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # SockJS-node -[![npm version](https://img.shields.io/npm/v/sockjs.svg?style=flat-square)](https://www.npmjs.com/package/sockjs)[![Build Status](https://img.shields.io/travis/sockjs/sockjs-node/master.svg?style=flat-square)](https://travis-ci.org/sockjs/sockjs-node)[![Dependencies](https://img.shields.io/david/sockjs/sockjs-node.svg?style=flat-square)](https://david-dm.org/sockjs/sockjs-node) +[![npm version](https://img.shields.io/npm/v/sockjs.svg?style=flat-square)](https://www.npmjs.com/package/sockjs)[![Dependencies](https://img.shields.io/david/sockjs/sockjs-node.svg?style=flat-square)](https://david-dm.org/sockjs/sockjs-node) # Supporting SockJS