Skip to content

Commit

Permalink
run only on changed cpp/hpp files
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygerardmoore committed Oct 4, 2024
1 parent 8748a8f commit e7ca98f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,15 @@ jobs:
# Run on the Docker image we tagged and pushed to a private repo in the job above
image: ghcr.io/picknikrobotics/fuse:${{ github.run_id }}
steps:
- run: run-clang-tidy -j $(nproc --all) -p build/ src/fuse -export-fixes clang-tidy-fixes.yaml
- name: Changed Files
id: changed-cpp-files
uses: tj-actions/[email protected]
with:
# Avoid using single or double quotes for multiline patterns
files: |
**.cpp
**.hpp
- run: run-clang-tidy -j $(nproc --all) -p build/ src/fuse ${{ steps.changed-cpp-files.outputs.all_changed_files }} -export-fixes clang-tidy-fixes.yaml
working-directory: /colcon_ws
- uses: asarium/[email protected]
with:
Expand Down

0 comments on commit e7ca98f

Please sign in to comment.