[doc] Update the README for npmjs #101
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: rclnodejs - Linux Build and Test | |
on: | |
push: | |
branches: | |
- develop | |
- iron-irwini | |
- humble-hawksbill | |
- galactic-geochelone | |
- foxy-fitzroy | |
pull_request: | |
branches: | |
- develop | |
- iron-irwini | |
- humble-hawksbill | |
- galactic-geochelone | |
- foxy-fitzroy | |
workflow_dispatch: | |
jobs: | |
identify-ros-distro: | |
uses: ./.github/workflows/identify-ros-distro.yml | |
build: | |
needs: identify-ros-distro | |
runs-on: ${{ needs.identify-ros-distro.outputs.linuxos }} | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [16.X, 18.X, 20.X] | |
steps: | |
- name: Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Setup ROS2 | |
uses: ros-tooling/[email protected] | |
with: | |
required-ros-distributions: ${{ needs.identify-ros-distro.outputs.distro }} | |
- name: Install test-msgs on Linux | |
run: | | |
sudo apt install ros-${{ needs.identify-ros-distro.outputs.distro }}-test-msgs | |
- uses: actions/checkout@v3 | |
- name: Build and test rclnodejs | |
run: | | |
source /opt/ros/${{ needs.identify-ros-distro.outputs.distro }}/setup.bash | |
npm i | |
npm test |