diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1af3f2e..b9898b1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -27,7 +27,7 @@ jobs: run: | mv examples/rclcpp/topics cpptopics mv examples/rclpy/topics pytopics - rm -rf examples test + rm -rf examples - name: Test the action uses: ./ @@ -57,7 +57,7 @@ jobs: - name: Adjust packages run: | mv examples/rclcpp/topics/minimal_publisher . - rm -rf examples test minimal_publisher/lambda.cpp + rm -rf examples minimal_publisher/lambda.cpp - name: Test the action id: action @@ -75,10 +75,17 @@ jobs: - name: Checkout this repository uses: actions/checkout@v2.3.4 - - name: Only test some packages + - name: Checkout ROS 2 examples + uses: actions/checkout@v2.3.4 + with: + repository: ros2/examples + ref: iron + path: examples + + - name: Adjust packages run: | - mv test/failed_test failed_test - rm -rf examples test + mv examples/rclcpp/topics/minimal_publisher . + sed -i '' 's/return 0;/int unused; return 0;/g' minimal_publisher/lambda.cpp - name: Test the action id: action diff --git a/test/failed_test/CMakeLists.txt b/test/failed_test/CMakeLists.txt deleted file mode 100644 index c4cc23e..0000000 --- a/test/failed_test/CMakeLists.txt +++ /dev/null @@ -1,28 +0,0 @@ -cmake_minimum_required(VERSION 3.5) - -project(failed_test) - -if(NOT CMAKE_C_STANDARD) - set(CMAKE_C_STANDARD 99) -endif() - -if(NOT CMAKE_CXX_STANDARD) - set(CMAKE_CXX_STANDARD 17) -endif() - -if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") - add_compile_options(-Wall -Wextra -Wpedantic) -endif() - -find_package(ament_cmake REQUIRED) - -add_executable(main "src/main.cpp") - -install(TARGETS main DESTINATION "lib/${PROJECT_NAME}") - -if(BUILD_TESTING) - find_package(ament_lint_auto REQUIRED) - ament_lint_auto_find_test_dependencies() -endif() - -ament_package() diff --git a/test/failed_test/package.xml b/test/failed_test/package.xml deleted file mode 100644 index 87a6ca0..0000000 --- a/test/failed_test/package.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - failed_test - 0.1.0 - This package must be failed during the test process - Alfi Maulana - MIT License - ament_cmake - ament_cmake_gtest - ament_lint_auto - ament_lint_common - - ament_cmake - - diff --git a/test/failed_test/src/main.cpp b/test/failed_test/src/main.cpp deleted file mode 100644 index aa7d23a..0000000 --- a/test/failed_test/src/main.cpp +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2021 ICHIRO ITS -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include - -int main(int /*argc*/, char * * /*argv*/ ){ - std::cout << "Hello World!" << - std::endl; - - return - 0; - }