Skip to content

Commit

Permalink
Merge pull request #52 from rubensworks/feature/node-18
Browse files Browse the repository at this point in the history
Update for modern Node versions
  • Loading branch information
RubenVerborgh authored Mar 20, 2024
2 parents 3666cd7 + b9e01f1 commit 165b78f
Show file tree
Hide file tree
Showing 5 changed files with 1,078 additions and 583 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: CI
on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version:
- 18.x
- 20.x
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Ensure line endings are consistent
run: git config --global core.autocrlf input
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Load cache
uses: actions/cache@v3
with:
path: |
**/node_modules
.rdf-test-suite-cache
.rdf-test-suite-ldf-cache
key: ${{ runner.os }}-test-modules-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test
- name: Run bin
run: bin/hdt test/test.hdt --format turtle --query 'http://example.org/s1 ?p ?o' | grep 'http://example.org/p1'

lint:
runs-on: ubuntu-latest
steps:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Load cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-lint-modules-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm install
- name: Run linter
run: npm run lint
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"OTHER_CFLAGS": [
"-stdlib=libc++",
"-Wno-register"
],
},
},
Expand Down
Loading

0 comments on commit 165b78f

Please sign in to comment.