mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
Show clang-tidy results
This commit is contained in:
parent
1f1a4eb142
commit
4f74af8fb7
20
.github/workflows/ci.yaml
vendored
20
.github/workflows/ci.yaml
vendored
@ -22,7 +22,7 @@ jobs:
|
|||||||
NAME: ccov
|
NAME: ccov
|
||||||
TARGET_CMAKE_ARGS: -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="--coverage"
|
TARGET_CMAKE_ARGS: -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="--coverage"
|
||||||
- IMAGE: noetic-source
|
- IMAGE: noetic-source
|
||||||
CLANG_TIDY: pedantic
|
CLANG_TIDY: true
|
||||||
TARGET_CMAKE_ARGS: >-
|
TARGET_CMAKE_ARGS: >-
|
||||||
-DCMAKE_BUILD_TYPE=Release
|
-DCMAKE_BUILD_TYPE=Release
|
||||||
-DCMAKE_CXX_FLAGS="-Werror -Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls"
|
-DCMAKE_CXX_FLAGS="-Werror -Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls"
|
||||||
@ -35,7 +35,7 @@ jobs:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
CATKIN_LINT: true
|
CATKIN_LINT: true
|
||||||
CLANG_TIDY_ARGS: --fix --fix-errors --format-style=file
|
CLANG_TIDY_ARGS: -quiet -export-fixes ${{ github.workspace }}/.work/clang-tidy-fixes.yaml
|
||||||
DOCKER_IMAGE: moveit/moveit:${{ matrix.env.IMAGE }}
|
DOCKER_IMAGE: moveit/moveit:${{ matrix.env.IMAGE }}
|
||||||
UNDERLAY: /root/ws_moveit/install
|
UNDERLAY: /root/ws_moveit/install
|
||||||
DOWNSTREAM_WORKSPACE: "github:ubi-agni/mtc_demos#master github:TAMS-Group/mtc_pour#master"
|
DOWNSTREAM_WORKSPACE: "github:ubi-agni/mtc_demos#master github:TAMS-Group/mtc_pour#master"
|
||||||
@ -65,15 +65,29 @@ jobs:
|
|||||||
|
|
||||||
- id: ici
|
- id: ici
|
||||||
name: Run industrial_ci
|
name: Run industrial_ci
|
||||||
uses: ros-industrial/industrial_ci@master
|
uses: rhaschke/industrial_ci@clang-tidy
|
||||||
env: ${{ matrix.env }}
|
env: ${{ matrix.env }}
|
||||||
|
|
||||||
|
- name: Show clang-tidy warnings
|
||||||
|
if: always() && matrix.env.CLANG_TIDY
|
||||||
|
uses: asarium/clang-tidy-action@v1
|
||||||
|
with:
|
||||||
|
fixesFile: ${{ env.BASEDIR }}/clang-tidy-fixes.yaml
|
||||||
|
|
||||||
|
- name: Upload clang-tidy fixes (on failure)
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
if: failure() && (steps.ici.outputs.clang_tidy_checks)
|
||||||
|
with:
|
||||||
|
name: clang-tidy-fixes.yaml
|
||||||
|
path: ${{ env.BASEDIR }}/clang-tidy-fixes.yaml
|
||||||
|
|
||||||
- name: Upload test artifacts (on failure)
|
- name: Upload test artifacts (on failure)
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
if: failure() && (steps.ici.outputs.run_target_test || steps.ici.outputs.target_test_results)
|
if: failure() && (steps.ici.outputs.run_target_test || steps.ici.outputs.target_test_results)
|
||||||
with:
|
with:
|
||||||
name: test-results-${{ matrix.env.IMAGE }}
|
name: test-results-${{ matrix.env.IMAGE }}
|
||||||
path: ${{ env.BASEDIR }}/target_ws/**/test_results/**/*.xml
|
path: ${{ env.BASEDIR }}/target_ws/**/test_results/**/*.xml
|
||||||
|
|
||||||
- name: Generate codecov report
|
- name: Generate codecov report
|
||||||
uses: rhaschke/lcov-action@main
|
uses: rhaschke/lcov-action@main
|
||||||
if: contains(matrix.env.TARGET_CMAKE_ARGS, '--coverage') && steps.ici.outputs.target_test_results == '0'
|
if: contains(matrix.env.TARGET_CMAKE_ARGS, '--coverage') && steps.ici.outputs.target_test_results == '0'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user