Skip to content

Commit

Permalink
Squashed commit of star-bnl#436
Browse files Browse the repository at this point in the history
  • Loading branch information
plexoos committed Dec 8, 2022
1 parent 5350d16 commit de1a93c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
BasedOnStyle: Google
ColumnLimit: '120'
IndentPPDirectives: None
IndentWidth: '3'
MaxEmptyLinesToKeep: '1'
SpacesInParentheses: 'false'
TabWidth: '3'
UseTab: Never

...
19 changes: 19 additions & 0 deletions .github/workflows/check-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: clang-format Check
on: [push, pull_request]
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
steps:
#this is needed to get sha of central repo
- name: test_Files
uses: actions/checkout@v3
with:
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
- name: Run clang-format style check for C/C++ files.
uses: DanielWielanek/clang-format-action@main
with:
clang-format-version: '13'
check-path: '.'
upstream-branch: upstream/main
upstream-path: https://github.com/star-bnl/star-sw.git

0 comments on commit de1a93c

Please sign in to comment.