-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,32 +16,28 @@ | |
name: Code style checks | ||
|
||
on: | ||
pull_request | ||
pull_request: | ||
paths: | ||
- '.github/workflows/code_style.yml' | ||
- 'cpp/**' | ||
|
||
concurrency: | ||
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
format-check: | ||
name: Formatting Check | ||
name: Format Check | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
path: | ||
- check: 'cpp/core' | ||
exclude: '' | ||
- check: 'cpp/velox' | ||
exclude: '' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run clang-format style check for C/C++ programs. | ||
- name: Run clang-format style check for C/C++ | ||
uses: jidicula/[email protected] | ||
with: | ||
clang-format-version: '15' | ||
check-path: ${{ matrix.path['check'] }} | ||
check-path: './cpp/' | ||
fallback-style: 'Google' # optional | ||
- name: Format CMake files | ||
- name: Check CMake format | ||
id: cmake-format | ||
uses: PuneetMatharu/[email protected] | ||
with: | ||
|
@@ -50,10 +46,8 @@ jobs: | |
license-check: | ||
name: License Header Check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Check License Header | ||
run: | | ||
git fetch --recurse-submodules=no origin main ${{github.event.pull_request.base.sha}} | ||
|