diff --git a/.github/workflows/ci_ubuntu20_04_foxy_ros2.yml b/.github/workflows/ci_ubuntu20_04_foxy_ros2.yml
index 7674a3cb4b92e986637204231aacb267cb7a6bf2..dd5bddb1e3048526856320c17a30db6729b3618d 100644
--- a/.github/workflows/ci_ubuntu20_04_foxy_ros2.yml
+++ b/.github/workflows/ci_ubuntu20_04_foxy_ros2.yml
@@ -47,6 +47,7 @@ jobs:
       - name: Build packages.
         shell: bash
         run: |
+          source /opt/ros/foxy/setup.bash
           ln -s /home/runner/work/dynamic_graph_bridge/dynamic_graph_bridge .
           colcon build
 
@@ -56,4 +57,5 @@ jobs:
       - name: Test current package.
         shell: bash
         run: |
+          source /opt/ros/foxy/setup.bash
           colcon test --packages-select dynamic_graph_bridge --event-handlers console_direct+ --return-code-on-test-failure