Car 5961 pcd fusion to ros2 #35
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: CI | |
on: | |
pull_request: | |
push: | |
jobs: | |
build: | |
defaults: | |
run: | |
shell: bash | |
working-directory: "/opt/carma/" | |
runs-on: ubuntu-latest | |
container: | |
image: usdotfhwastoldev/autoware.ai:develop | |
env: | |
INIT_ENV: "/home/carma/.base-image/init-env.sh" | |
ROS_2_ENV: "/opt/ros/foxy/setup.bash" | |
TERM: xterm | |
options: "--user root" | |
steps: | |
- name: Checkout ${{ github.event.repository.name }} | |
uses: actions/checkout@v3.3.0 | |
with: | |
path: src/${{ github.event.repository.name }} | |
fetch-depth: 0 | |
- name: Move source code | |
run: mv $GITHUB_WORKSPACE/src /opt/carma/ | |
- name: Checkout dependencies | |
run: | | |
./src/${{ github.event.repository.name }}/docker/checkout.bash -r /opt/carma/ | |
- name: Build | |
run: | | |
source "$INIT_ENV" | |
source "$ROS_2_ENV" | |
./src/${{ github.event.repository.name }}/docker/install.sh | |
sed -i '/colcon build/ s/$/ --packages-up-to velodyne_lidar_driver_wrapper/' /home/carma/.ci-image/engineering_tools/code_coverage/make_with_coverage.bash | |
make_with_coverage.bash -m -e /opt/carma/ -o ./coverage_reports/gcov | |
- name: Run C++ Tests | |
run: | | |
source "$INIT_ENV" | |
source "$ROS_2_ENV" | |
sed -i '/colcon test/ s/$/ --packages-above velodyne_lidar_driver_wrapper/' /home/carma/.ci-image/engineering_tools/code_coverage/make_with_coverage.bash | |
make_with_coverage.bash -t -e /opt/carma/ -o ./coverage_reports/gcov | |
- name: Run SonarScanner | |
uses: usdot-fhwa-stol/actions/sonar-scanner@main | |
with: | |
sonar-token: ${{ secrets.SONAR_TOKEN }} | |
working-dir: "/opt/carma/src/${{ github.event.repository.name }}" |