Skip to content

Commit

Permalink
Another test -does the clang format action handle tests?
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoiast committed May 14, 2024
1 parent e1413ab commit e6a4092
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 29 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,32 +98,5 @@ jobs:
# (Optional) cppcheck args
# cppcheck_args: --enable=all --suppress=missingInclude --suppress=missingIncludeSystem
cppcheck_args: --enable=all --disable=unusedFunction,missingInclude --suppress=missingIncludeSystem --std=c++17 --language=c++
- name: Run clang-format style check for C/C++/Protobuf programs.
if: matrix.config.os == 'ubuntu-22.04'
uses: jidicula/[email protected]
with:
clang-format-version: '17'
check-path: src
- uses: DoozyX/[email protected]
if: matrix.config.os == 'ubuntu-22.04'
with:
source: '.'
extensions: 'h,cpp,c,cxx'
clangFormatVersion: 16
inplace: True
style: chromium
- uses: EndBug/add-and-commit@v9
if: false
with:
author_name: Clang Robot
author_email: [email protected]
message: 'Committing clang-format changes'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run clang format
if: false
run : |
ninja -C '${{ runner.workspace }}/build/${{ runner.config.build_dir }}' clang-format
# ninja -C '${{ runner.workspace }}/build/${{ runner.config.build_dir }}' check-clang-format
- name: Run tests
run : '${{ runner.workspace }}/build/${{ runner.config.build_dir }}/bin/test-buttons'
2 changes: 1 addition & 1 deletion .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
matrix:
path:
- 'src'
# - 'tests'
- 'tests'
steps:
- uses: actions/checkout@v3
- name: Run clang-format style check for C/C++/Protobuf programs.
Expand Down
3 changes: 2 additions & 1 deletion src/main.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
// auto handle_event(std::shared_ptr<PlatformWindow> w, const Event &ev);
// auto handle_event(int window_id, int widget_id, const Event &ev);

struct DebugWidget : public Widget {
struct DebugWidget : public Widget
{
bool state_pressed = false;
Position pos = {0, 0};
bool unclick_inside = false;
Expand Down

0 comments on commit e6a4092

Please sign in to comment.