File tree 3 files changed +11
-14
lines changed
3 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 50
50
51
51
- name : industrial_ci
52
52
uses : ros-industrial/industrial_ci@master
53
- env : ${{ matrix.env }}
54
53
55
54
- name : upload test artifacts (on failure)
56
55
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change @@ -11,16 +11,14 @@ jobs:
11
11
default :
12
12
name : Build + Test + Deploy Website
13
13
runs-on : ubuntu-latest
14
+ container : ros:noetic-ros-base
14
15
steps :
15
16
- uses : actions/checkout@v2
16
- -
uses :
ros-tooling/[email protected]
17
- with :
18
- required-ros-distributions : noetic
19
- - uses : actions/setup-python@v2
20
- - uses : ruby/setup-ruby@v1
21
- with :
22
- ruby-version : ' 2.7'
23
- - name : " Build+Test: Run htmlproofer.sh"
17
+ - name : " Install ruby"
18
+ run : |
19
+ apt-get update -q
20
+ apt-get install -q -y ruby-dev libffi-dev build-essential git
21
+ - name : " Run htmlproofer.sh"
24
22
run : ./htmlproofer.sh
25
23
- name : Deploy
26
24
if : ${{ success() && github.event_name == 'push'}}
Original file line number Diff line number Diff line change @@ -7,20 +7,20 @@ export REPOSITORY_NAME=${PWD##*/}
7
7
echo " Testing branch ${GITHUB_BASE_REF:- $GITHUB_HEAD_REF } of $REPOSITORY_NAME "
8
8
9
9
# Install htmlpoofer
10
- gem update --system
10
+ sudo gem update --system --no-document
11
11
gem --version
12
- gem install html-proofer -v 3.19.4 # newer 4.x requires different cmdline options
12
+ sudo gem install html-proofer -v 3.19.4 # newer 4.x requires different cmdline options
13
13
# Install ROS's version of sphinx
14
- sudo apt-get -qq install " ros-noetic -rosdoc-lite"
15
- source " /opt/ros/noetic /setup.bash"
14
+ sudo apt-get -qq install " ros-$ROS_DISTRO -rosdoc-lite"
15
+ source " /opt/ros/$ROS_DISTRO /setup.bash"
16
16
17
17
# Test build with non-ROS wrapped Sphinx command to allow warnings and errors to be caught
18
18
sphinx-build -W -b html . native_build
19
19
# Test build with ROS-version of Sphinx command so that it is generated same as ros.org
20
20
rosdoc_lite -o build .
21
21
22
22
# Run HTML tests on generated build output to check for 404 errors, etc
23
- test " $TRAVIS_PULL_REQUEST " == false || URL_SWAP=" --url-swap https\://github.com/ros-planning/moveit_tutorials/blob/master/:file\://$PWD /build/html/"
23
+ URL_SWAP=" --url-swap https\://github.com/ros-planning/moveit_tutorials/blob/master/:file\://$PWD /build/html/"
24
24
htmlproofer ./build --only-4xx --check-html --file-ignore ./build/html/genindex.html,./build/html/search.html --alt-ignore ' /.*/' --url-ignore ' #' $URL_SWAP
25
25
26
26
# Tell GitHub Pages (on deploy) to bypass Jekyll processing
You can’t perform that action at this time.
0 commit comments