Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding in Github Actions for CI. #381

Merged
merged 5 commits into from
Jun 11, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Linux Builds

on: [push]
trankin marked this conversation as resolved.
Show resolved Hide resolved

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [0.12, 4.x, 6.x, 8.x, 10.x, 11.x, 12.x]

steps:
- uses: actions/checkout@v2
- name: Install ubuntu-toolchain-r/test
run: sudo add-apt-repository ppa:ubuntu-toolchain-r/test
- name: Install libudev-dev
run: sudo apt install libudev-dev
- name: Build open-zwave-latest
run: wget https://github.com/OpenZWave/open-zwave/archive/master.zip && unzip master.zip && cd open-zwave-master && sudo make install && sudo ldconfig /usr/local/lib /usr/local/lib64 && cd ..
trankin marked this conversation as resolved.
Show resolved Hide resolved
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g node-gyp
trankin marked this conversation as resolved.
Show resolved Hide resolved
- run: npm install
- run: npm run build --if-present
trankin marked this conversation as resolved.
Show resolved Hide resolved
- run: npm test
env:
CI: true
25 changes: 25 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Windows Builds

on: [push]

jobs:
build:

runs-on: windows-latest

strategy:
matrix:
node-version: [12.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 install -g node-gyp
trankin marked this conversation as resolved.
Show resolved Hide resolved
- run: npm install
- run: npm run build --if-present
trankin marked this conversation as resolved.
Show resolved Hide resolved
- run: npm test
env:
CI: true
trankin marked this conversation as resolved.
Show resolved Hide resolved
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ node-openzwave-shared
=====================
[Linux![Linux Build Status](https://travis-ci.org/OpenZWave/node-openzwave-shared.svg?branch=master)](https://travis-ci.org/OpenZWave/node-openzwave-shared)
[Windows![Windows Build status](https://ci.appveyor.com/api/projects/status/txg360huomtpgc8o?svg=true)](https://ci.appveyor.com/project/ekarak/node-openzwave-shared)

![Linux Build status](https://github.com/OpenZWave/node-openzwave-shared/workflows/Linux%20Builds/badge.svg)

![Windows Build status](https://github.com/OpenZWave/node-openzwave-shared/workflows/Windows%20Builds/badge.svg)

[![Join the chat at https://gitter.im/OpenZWave/node-openzwave-shared](https://badges.gitter.im/OpenZWave/node-openzwave-shared.svg)](https://gitter.im/OpenZWave/node-openzwave-shared?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Google group](http://www.google.com/images/icons/product/groups-32.png)](https://groups.google.com/d/forum/node-openzwave-shared)

Expand Down