Skip to content

Enhacement on security #31

Enhacement on security

Enhacement on security #31

Workflow file for this run

name: ROS 2 CI

Check failure on line 1 in .github/workflows/ros_ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ros_ci.yml

Invalid workflow file

(Line: 40, Col: 1): Unexpected value 'volumes'
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build repository Docker image
run: |
docker build -t dicom_to_ros:ci -f docker/Dockerfile .
- name: Run build and tests inside container
run: |
docker run --rm \
--workdir /ros2_ws \
-v ${{ github.workspace }}/dicom_interfaces:/ros2_ws/src/dicom_interfaces \
-v ${{ github.workspace }}/dicom_to_ros:/ros2_ws/src/dicom_to_ros \
-v keystore_ci:/ros2_ws/keystore \
-e ROS_SECURITY_ENABLE=true \
-e ROS_SECURITY_STRATEGY=Enforce \
-e ROS_SECURITY_KEYSTORE=/ros2_ws/keystore \
dicom_to_ros:ci bash -c "
set -e
echo '--- Generating Keystore ---'
./src/dicom_to_ros/dicom_to_ros/security/generate_keystore.sh
echo '--- Building Workspace ---'
source /opt/ros/jazzy/setup.bash
colcon build --symlink-install
echo '--- Running Tests ---'
source ./install/setup.bash
colcon test --event-handlers=console_direct+
colcon test-result
"
volumes:
keystore_ci: