Skip to content

Commit

Permalink
add GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiask88 committed Nov 18, 2023
1 parent 486a9da commit 386a8cd
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 75 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test and Release
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
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
- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
architecture: ${{ matrix.arch }}
- name: Install
run: npm install
- name: Test
run: npm test
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

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 386a8cd

Please sign in to comment.