Skip to content

Commit

Permalink
refactor: move the content of build-and-test.bash script to `action…
Browse files Browse the repository at this point in the history
….yaml`
  • Loading branch information
threeal committed Nov 1, 2023
1 parent 6a82f0a commit d6570e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
12 changes: 9 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ runs:
rosdep update
rosdep install -y --rosdistro ${{ inputs.ros2-distro }} --from-paths .
- name: Build and test workspace
run: bash ${{ github.action_path }}/scripts/build-and-test.bash ${{ inputs.ros2-distro }}
shell: bash
- shell: bash
run: |
source /opt/ros/${{ inputs.ros2-distro }}/setup.bash
colcon build --event-handlers console_cohesion+ --cmake-args
- shell: bash
run: |
source install/setup.bash
colcon test --event-handlers console_cohesion+ --pytest-with-coverage --return-code-on-test-failure
18 changes: 0 additions & 18 deletions scripts/build-and-test.bash

This file was deleted.

0 comments on commit d6570e1

Please sign in to comment.