Skip to content

Commit 2759e4a

Browse files
authored
add GitHub Actions (#94)
1 parent 486a9da commit 2759e4a

5 files changed

Lines changed: 45 additions & 77 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test and Release
2+
on: [push, pull_request]
3+
permissions:
4+
contents: read
5+
jobs:
6+
build:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-latest, macos-latest, windows-latest]
11+
node: [12, 14, 16, 18, 20]
12+
arch: [x86, x64]
13+
exclude:
14+
- { os: ubuntu-latest, arch: x86 }
15+
- { os: macos-latest, arch: x86 }
16+
runs-on: ${{ matrix.os }}
17+
name: ${{ matrix.os }} / Node ${{ matrix.node }} ${{ matrix.arch }}
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
with:
22+
submodules: recursive
23+
fetch-depth: 2
24+
# Force Python to 3.11 until prebuild updates to node-gyp 10
25+
- name: Use Python 3.11
26+
uses: actions/setup-python@v4
27+
with:
28+
python-version: '3.11'
29+
- name: Use node ${{ matrix.node }} ${{ matrix.arch }}
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: ${{ matrix.node }}
33+
architecture: ${{ matrix.arch }}
34+
- name: Install
35+
run: npm install
36+
- name: Test
37+
env:
38+
PREBUILD_TOKEN: ${{ secrets.PREBUILD_TOKEN }}
39+
run: npm test

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
[![npm](https://img.shields.io/npm/v/node-snap7.svg?label=&logo=npm)](https://www.npmjs.com/package/node-snap7)
44
[![Node version](https://img.shields.io/node/v/node-snap7.svg)](https://www.npmjs.com/package/node-snap7)
5-
[![Travis](https://img.shields.io/travis/mathiask88/node-snap7.svg?logo=travis&label=)](https://travis-ci.org/mathiask88/node-snap7)
6-
[![AppVeyor](https://img.shields.io/appveyor/ci/mathiask88/node-snap7.svg?logo=appveyor&label=)](https://ci.appveyor.com/project/mathiask88/node-snap7)
5+
[![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)
76
[![npm](https://img.shields.io/npm/dm/node-snap7.svg?label=dl)](https://www.npmjs.com/package/node-snap7)
87

98
**Current node-snap7 version:** 1.0.6\

appveyor.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@
1818
"name": "Mathias Küsel"
1919
},
2020
"engines": {
21-
"node": ">=4"
21+
"node": ">=12"
2222
},
2323
"license": "MIT",
2424
"readmeFilename": "README.md",
2525
"dependencies": {
26-
"nan": "~2.14.1",
26+
"nan": "~2.18.0",
2727
"bindings": "~1.5.0",
28-
"prebuild-install": "^6.1.2"
28+
"prebuild-install": "^7.1.1"
2929
},
3030
"devDependencies": {
31-
"prebuild": "^10.0.0",
32-
"prebuild-ci": "^3.1.0"
31+
"prebuild": "^12.1.0",
32+
"prebuild-ci": "^4.0.0"
3333
},
3434
"scripts": {
3535
"install": "prebuild-install || node-gyp rebuild",

0 commit comments

Comments
 (0)