Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Language: Cpp
BasedOnStyle: Chromium
UseTab: Never
IndentWidth: 4
TabWidth: 4
AllowShortIfStatementsOnASingleLine: Never
IndentCaseLabels: false
ColumnLimit: 0
AccessModifierOffset: -4
9 changes: 9 additions & 0 deletions .github/workflows/generate-sequence.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,12 @@ jobs:
- name: Run tests
working-directory: ${{ env.path }}
run: ctest -V

formatting_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run clang-format style check
uses: coders-school/github-actions/clang-format-check@main
with:
check_path: 'homework/generate-sequence'
4 changes: 1 addition & 3 deletions homework/generate-sequence/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,4 @@ INSTANTIATE_TEST_SUITE_P(
Params{3, -4, std::vector<int>{-4, -8, -12}},
Params{5, 2, std::vector<int>{2, 4, 6, 8, 10}},
Params{8, 5, std::vector<int>{5, 10, 15, 20, 25, 30, 35, 40}},
Params{10, 5, std::vector<int>{5, 10, 15, 20, 25, 30, 35, 40, 45, 50}}
)
);
Params{10, 5, std::vector<int>{5, 10, 15, 20, 25, 30, 35, 40, 45, 50}}));