-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Bala.FA <[email protected]>
- Loading branch information
1 parent
c3ce2fa
commit ad1966c
Showing
2 changed files
with
49 additions
and
33 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
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Linters | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
# This ensures that previous jobs for the PR are canceled when the PR is | ||
# updated. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
coding-style: | ||
name: "Coding Style & Version Check" | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- name: Checkout minio-cpp | ||
uses: actions/checkout@v4 | ||
with: | ||
path: "minio-cpp" | ||
|
||
- name: "Python" | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install dependencies | ||
run: | | ||
# sudo apt -qy update | ||
# sudo apt -qy upgrade | ||
sudo apt -qy install clang-format-18 | ||
clang-format-18 --version | ||
- name: Version Check | ||
shell: bash | ||
working-directory: minio-cpp | ||
run: python check-version.py | ||
|
||
- name: Coding Style Check | ||
shell: bash | ||
working-directory: minio-cpp | ||
run: CLANG_FORMAT=clang-format-18 ./check-style.sh |