Skip to content

Commit 165b78f

Browse files
Merge pull request #52 from rubensworks/feature/node-18
Update for modern Node versions
2 parents 3666cd7 + b9e01f1 commit 165b78f

File tree

5 files changed

+1078
-583
lines changed

5 files changed

+1078
-583
lines changed

.github/workflows/ci.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.ref }}
6+
cancel-in-progress: true
7+
8+
jobs:
9+
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest]
15+
node-version:
16+
- 18.x
17+
- 20.x
18+
steps:
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- name: Ensure line endings are consistent
24+
run: git config --global core.autocrlf input
25+
- name: Check out repository
26+
uses: actions/checkout@v3
27+
with:
28+
submodules: 'recursive'
29+
- name: Load cache
30+
uses: actions/cache@v3
31+
with:
32+
path: |
33+
**/node_modules
34+
.rdf-test-suite-cache
35+
.rdf-test-suite-ldf-cache
36+
key: ${{ runner.os }}-test-modules-${{ hashFiles('**/package-lock.json') }}
37+
- name: Install dependencies
38+
run: npm install
39+
- name: Run tests
40+
run: npm run test
41+
- name: Run bin
42+
run: bin/hdt test/test.hdt --format turtle --query 'http://example.org/s1 ?p ?o' | grep 'http://example.org/p1'
43+
44+
lint:
45+
runs-on: ubuntu-latest
46+
steps:
47+
- name: Use Node.js
48+
uses: actions/setup-node@v3
49+
with:
50+
node-version: 18.x
51+
- name: Check out repository
52+
uses: actions/checkout@v3
53+
with:
54+
submodules: 'recursive'
55+
- name: Load cache
56+
uses: actions/cache@v3
57+
with:
58+
path: '**/node_modules'
59+
key: ${{ runner.os }}-lint-modules-${{ hashFiles('**/package-lock.json') }}
60+
- name: Install dependencies
61+
run: npm install
62+
- name: Run linter
63+
run: npm run lint

.travis.yml

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

binding.gyp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
4747
"OTHER_CFLAGS": [
4848
"-stdlib=libc++",
49+
"-Wno-register"
4950
],
5051
},
5152
},

0 commit comments

Comments
 (0)