Skip to content

Commit

Permalink
Merge pull request #59 from anraf1001/schedule-exclude-dir
Browse files Browse the repository at this point in the history
Exclude tests dir in clang-format check
  • Loading branch information
ziobron authored Jun 23, 2022
2 parents 8fb2198 + 59d0fad commit 911bd2e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ jobs:
uses: coders-school/github-actions/clang-format-check@main
with:
check_path: homework/schedule
exclude_dir: 'homework/schedule/tests/catch'
4 changes: 2 additions & 2 deletions homework/schedule/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
include_directories(.)

add_executable(${PROJECT_NAME} main.cpp)
add_executable(${PROJECT_NAME}-ut tests/catch_amalgamated.cpp tests/catch_main.cpp tests/tests.cpp)
add_executable(${PROJECT_NAME}-ut-bonus tests/catch_amalgamated.cpp tests/catch_main.cpp tests/tests-bonus.cpp)
add_executable(${PROJECT_NAME}-ut tests/catch/catch_amalgamated.cpp tests/catch/catch_main.cpp tests/tests.cpp)
add_executable(${PROJECT_NAME}-ut-bonus tests/catch/catch_amalgamated.cpp tests/catch/catch_main.cpp tests/tests-bonus.cpp)

target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror -Wpedantic)
target_compile_options(${PROJECT_NAME}-ut PRIVATE -Wall -Wextra -Werror -Wpedantic)
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions homework/schedule/tests/tests-bonus.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <chrono>
#include <string>
#include "catch_amalgamated.hpp"
#include "catch/catch_amalgamated.hpp"
#include "schedule.hpp"

using namespace std::chrono_literals;
Expand Down Expand Up @@ -55,4 +55,4 @@ SCENARIO("Testing schedule function with any function", "[schedule][template][va
}
}
}
}
}
4 changes: 2 additions & 2 deletions homework/schedule/tests/tests.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <chrono>
#include <string>
#include "catch_amalgamated.hpp"
#include "catch/catch_amalgamated.hpp"
#include "schedule.hpp"

using namespace std::chrono_literals;
Expand Down Expand Up @@ -69,4 +69,4 @@ SCENARIO("Testing schedule function with void(std::string, double)", "[schedule]
}
}
}
}
}

0 comments on commit 911bd2e

Please sign in to comment.