Skip to content

Commit

Permalink
add GitHub Actions (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiask88 authored Nov 22, 2023
1 parent 486a9da commit 2759e4a
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 77 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test and Release
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [12, 14, 16, 18, 20]
arch: [x86, x64]
exclude:
- { os: ubuntu-latest, arch: x86 }
- { os: macos-latest, arch: x86 }
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} / Node ${{ matrix.node }} ${{ matrix.arch }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 2
# Force Python to 3.11 until prebuild updates to node-gyp 10
- name: Use Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Use node ${{ matrix.node }} ${{ matrix.arch }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
architecture: ${{ matrix.arch }}
- name: Install
run: npm install
- name: Test
env:
PREBUILD_TOKEN: ${{ secrets.PREBUILD_TOKEN }}
run: npm test
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

[![npm](https://img.shields.io/npm/v/node-snap7.svg?label=&logo=npm)](https://www.npmjs.com/package/node-snap7)
[![Node version](https://img.shields.io/node/v/node-snap7.svg)](https://www.npmjs.com/package/node-snap7)
[![Travis](https://img.shields.io/travis/mathiask88/node-snap7.svg?logo=travis&label=)](https://travis-ci.org/mathiask88/node-snap7)
[![AppVeyor](https://img.shields.io/appveyor/ci/mathiask88/node-snap7.svg?logo=appveyor&label=)](https://ci.appveyor.com/project/mathiask88/node-snap7)
[![Test and Release](https://github.com/mathiask88/node-snap7/actions/workflows/test-and-release.yml/badge.svg)](https://github.com/mathiask88/node-snap7/actions/workflows/test-and-release.yml)
[![npm](https://img.shields.io/npm/dm/node-snap7.svg?label=dl)](https://www.npmjs.com/package/node-snap7)

**Current node-snap7 version:** 1.0.6\
Expand Down
45 changes: 0 additions & 45 deletions appveyor.yml

This file was deleted.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
"name": "Mathias Küsel"
},
"engines": {
"node": ">=4"
"node": ">=12"
},
"license": "MIT",
"readmeFilename": "README.md",
"dependencies": {
"nan": "~2.14.1",
"nan": "~2.18.0",
"bindings": "~1.5.0",
"prebuild-install": "^6.1.2"
"prebuild-install": "^7.1.1"
},
"devDependencies": {
"prebuild": "^10.0.0",
"prebuild-ci": "^3.1.0"
"prebuild": "^12.1.0",
"prebuild-ci": "^4.0.0"
},
"scripts": {
"install": "prebuild-install || node-gyp rebuild",
Expand Down

0 comments on commit 2759e4a

Please sign in to comment.