-
Notifications
You must be signed in to change notification settings - Fork 658
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: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
99e88ee
commit a849810
Showing
13 changed files
with
81 additions
and
294 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,61 @@ | ||
name: clang-tidy-differential | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- labeled | ||
|
||
jobs: | ||
make-sure-label-is-present: | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1 | ||
with: | ||
label: tag:run-clang-tidy-differential | ||
|
||
clang-tidy-differential: | ||
needs: make-sure-label-is-present | ||
if: ${{ needs.make-sure-label-is-present.outputs.result == 'true' }} | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/autowarefoundation/autoware:universe-devel-cuda | ||
steps: | ||
- name: Set PR fetch depth | ||
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}" | ||
|
||
- name: Checkout PR branch and all PR commits | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: ${{ env.PR_FETCH_DEPTH }} | ||
|
||
- name: Show disk space before the tasks | ||
run: df -h | ||
|
||
- name: Remove exec_depend | ||
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1 | ||
|
||
- name: Get modified packages | ||
id: get-modified-packages | ||
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1 | ||
|
||
- name: Get modified files | ||
id: get-modified-files | ||
uses: tj-actions/changed-files@v42 | ||
with: | ||
files: | | ||
**/*.cpp | ||
**/*.hpp | ||
- name: Run clang-tidy | ||
if: ${{ steps.get-modified-files.outputs.all_changed_files != '' }} | ||
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1 | ||
with: | ||
rosdistro: humble | ||
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }} | ||
target-files: ${{ steps.get-modified-files.outputs.all_changed_files }} | ||
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy | ||
build-depends-repos: build_depends.repos | ||
|
||
- name: Show disk space after the tasks | ||
run: df -h |
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
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
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
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# This file is automatically synced from: | ||
# https://github.com/autowarefoundation/sync-file-templates | ||
# To make changes, update the source repository and follow the guidelines in its README. | ||
|
||
ci: | ||
autofix_commit_msg: "style(pre-commit): autofix" | ||
|
||
|
@@ -38,7 +34,7 @@ repos: | |
- id: yamllint | ||
|
||
- repo: https://github.com/tier4/pre-commit-hooks-ros | ||
rev: v0.10.0 | ||
rev: v0.8.0 | ||
hooks: | ||
- id: flake8-ros | ||
- id: prettier-xacro | ||
|
@@ -53,7 +49,7 @@ repos: | |
- id: shellcheck | ||
|
||
- repo: https://github.com/scop/pre-commit-shfmt | ||
rev: v3.9.0-1 | ||
rev: v3.8.0-1 | ||
hooks: | ||
- id: shfmt | ||
args: [-w, -s, -i=4] | ||
|
@@ -64,13 +60,13 @@ repos: | |
- id: isort | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 24.8.0 | ||
rev: 24.4.2 | ||
hooks: | ||
- id: black | ||
args: [--line-length=100] | ||
|
||
- repo: https://github.com/pre-commit/mirrors-clang-format | ||
rev: v18.1.8 | ||
rev: v18.1.6 | ||
hooks: | ||
- id: clang-format | ||
types_or: [c++, c, cuda] | ||
|
@@ -83,7 +79,7 @@ repos: | |
exclude: .cu | ||
|
||
- repo: https://github.com/python-jsonschema/check-jsonschema | ||
rev: 0.29.2 | ||
rev: 0.28.5 | ||
hooks: | ||
- id: check-metaschema | ||
files: ^.+/schema/.*schema\.json$ | ||
|
@@ -97,9 +93,3 @@ repos: | |
language: node | ||
files: .svg$ | ||
additional_dependencies: [[email protected], "@prettier/[email protected]"] | ||
|
||
- repo: https://github.com/AleksaC/hadolint-py | ||
rev: v2.12.1b3 | ||
hooks: | ||
- id: hadolint | ||
exclude: .svg$ |
Oops, something went wrong.