File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,12 @@ jobs:
10
10
fail-fast : false
11
11
matrix :
12
12
ros_distro : [kinetic, melodic] # Temp remove noetic waitng for release of tf2_web_republisher
13
+ node_version : [14]
13
14
steps :
14
15
- uses : actions/checkout@v2
15
16
- name : Docker pull
16
17
run : docker pull ros:${{ matrix.ros_distro }}-ros-core
17
18
- name : Docker build
18
- run : docker build --build-arg ROS_DISTRO="${{ matrix.ros_distro }}" -t roslibjsdocker .
19
+ run : docker build --build-arg ROS_DISTRO="${{ matrix.ros_distro }}" --build-arg NODE_VERSION="${{ matrix.node_version }}" - t roslibjsdocker .
19
20
- name : Tests
20
21
run : docker run -v $(pwd):/root/roslibjs --rm roslibjsdocker bash -i -c 'bash /root/roslibjs/test/build.bash'
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ FROM ros:$ROS_DISTRO-ros-core
5
5
RUN apt update && apt-get install -y xvfb firefox git wget ros-$ROS_DISTRO-rosbridge-server ros-$ROS_DISTRO-tf2-web-republisher ros-$ROS_DISTRO-common-tutorials ros-$ROS_DISTRO-rospy-tutorials ros-$ROS_DISTRO-actionlib-tutorials
6
6
7
7
# Install nvm, Node.js and node-gyp
8
- ENV NODE_VERSION=v10.15.0
9
- RUN wget -qO- https://raw.githubusercontent.com/creationix /nvm/v0.33.2 /install.sh | bash \
8
+ ARG NODE_VERSION=14
9
+ RUN wget -qO- https://raw.githubusercontent.com/nvm-sh /nvm/v0.38.0 /install.sh | bash \
10
10
&& . $HOME/.nvm/nvm.sh \
11
11
&& nvm install $NODE_VERSION && nvm alias default $NODE_VERSION \
12
12
&& npm install -g node-gyp
13
13
14
14
RUN echo "source /opt/ros/$ROS_DISTRO/setup.bash" >> $HOME/.bashrc
15
- ENV PATH /bin/versions/node/$NODE_VERSION/bin:$PATH
15
+ ENV PATH= /bin/versions/node/$NODE_VERSION/bin:$PATH
You can’t perform that action at this time.
0 commit comments