New Motors #452
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: Catkin ROS Tests | |
on: | |
# Trigger the workflow on push or pull request, | |
# but only for the main branch | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
branches: | |
- master | |
- develop | |
jobs: | |
catkin-tests: | |
name: Setup catkin and Run Tests | |
runs-on: [ubuntu-20.04] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
token: ${{ secrets.PAT_TOKEN }} | |
- uses: betwo/github-setup-catkin@master | |
with: | |
ros-version: 'noetic' | |
build-tool: 'catkin_tools' | |
workspace: '$GITHUB_WORKSPACE' | |
- run: | | |
mkdir -p ~/catkin_ws/src | |
ln -s $GITHUB_WORKSPACE ~/catkin_ws/src/purdue_lunabotics | |
cd ~/catkin_ws | |
sudo ./src/purdue_lunabotics/install-non-ros-deps.sh | |
catkin build | |
catkin test |