Skip to content

Commit de1a93c

Browse files
committed
Squashed commit of star-bnl#436
1 parent 5350d16 commit de1a93c

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.clang-format

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
BasedOnStyle: Google
3+
ColumnLimit: '120'
4+
IndentPPDirectives: None
5+
IndentWidth: '3'
6+
MaxEmptyLinesToKeep: '1'
7+
SpacesInParentheses: 'false'
8+
TabWidth: '3'
9+
UseTab: Never
10+
11+
...

.github/workflows/check-format.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: clang-format Check
2+
on: [push, pull_request]
3+
jobs:
4+
formatting-check:
5+
name: Formatting Check
6+
runs-on: ubuntu-latest
7+
steps:
8+
#this is needed to get sha of central repo
9+
- name: test_Files
10+
uses: actions/checkout@v3
11+
with:
12+
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
13+
- name: Run clang-format style check for C/C++ files.
14+
uses: DanielWielanek/clang-format-action@main
15+
with:
16+
clang-format-version: '13'
17+
check-path: '.'
18+
upstream-branch: upstream/main
19+
upstream-path: https://github.com/star-bnl/star-sw.git

0 commit comments

Comments
 (0)