Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/linux-build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Linux Build and Test

on: [push, pull_request, workflow_dispatch]

jobs:
build:

runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
node-version: [10.X, 12.x, 14.X, 16.X, 17.X]

steps:
- name: Setup ROS2
uses: ros-tooling/[email protected]
with:
required-ros-distributions: rolling

- name: Install test-msgs on Linux
run: |
sudo apt install ros-rolling-test-msgs

- uses: actions/checkout@v2
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Run test suite on Linux
run: |
source /opt/ros/rolling/setup.bash
npm i
npm test
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

62 changes: 0 additions & 62 deletions Dockerfile

This file was deleted.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
"scripts": {
"install": "node-gyp rebuild",
"docs": "cd docs && make",
"test": "node ./scripts/compile_tests.js && node --expose-gc ./scripts/run_test.js && npm run dtslint",
"pretest": "node ./scripts/compile_tests.js",
"test": "run-script-os && npm run dtslint",
"test:macos:linux": ". ./install/local_setup.sh && node --expose-gc ./scripts/run_test.js",
"test:windows": "./install/local_setup.bat && node --expose-gc ./scripts/run_test.js",
"dtslint": "node ./scripts/generate_tsd.js && dtslint test/types",
"lint": "eslint --max-warnings=0 --ext js,ts index.js types scripts lib example rosidl_gen rosidl_parser test benchmark/rclnodejs && node ./scripts/cpplint.js",
"postinstall": "node scripts/generate_messages.js",
Expand Down Expand Up @@ -53,6 +56,7 @@
"mocha": "^8.0.1",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"run-script-os": "^1.1.6",
"sinon": "^9.0.2",
"tree-kill": "^1.2.2",
"typescript": "^4.0.3"
Expand Down