Skip to content

Commit

Permalink
Add QA workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyolex committed Aug 28, 2024
1 parent fef504e commit e989606
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Pull Request Quality Assurance
on:
pull_request:

jobs:
ruff-check:
name: Ruff linter check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ChartBoost/ruff-action@main
ruff-format-check:
name: Ruff formatting check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ChartBoost/ruff-action@main
with:
args: "format --check"

clang-format-check:
name: C/C++ code format checking
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
path:
- "src"
- "lib"

steps:
- uses: actions/checkout@v4
- uses: jidicula/clang-format-action@main
with:
clang-format-version: "18"
check-path: ${{ matrix.path }}

0 comments on commit e989606

Please sign in to comment.