Skip to content

Commit 65ed827

Browse files
authored
Merge pull request #927 from anraf1001/fibonacci-clang-format
Fibonacci - clang-format action
2 parents 4ea5364 + a31c123 commit 65ed827

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.clang-format

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Language: Cpp
2+
BasedOnStyle: Chromium
3+
UseTab: Never
4+
IndentWidth: 4
5+
TabWidth: 4
6+
AllowShortIfStatementsOnASingleLine: Never
7+
IndentCaseLabels: false
8+
ColumnLimit: 0
9+
AccessModifierOffset: -4

.github/workflows/fibonacci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,12 @@ jobs:
2020
- name: Run tests
2121
working-directory: ${{ env.path }}
2222
run: ctest -V
23+
24+
formatting_check:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Run clang-format style check
29+
uses: coders-school/github-actions/clang-format-check@main
30+
with:
31+
check_path: 'homework/fibonacci'

homework/fibonacci/test.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,4 @@ INSTANTIATE_TEST_SUITE_P(
3131
std::make_tuple(10, 55),
3232
std::make_tuple(13, 233),
3333
std::make_tuple(17, 1597),
34-
std::make_tuple(20, 6765)
35-
)
36-
);
34+
std::make_tuple(20, 6765)));

0 commit comments

Comments
 (0)