clang-tidy

December 30, 2025 ยท View on GitHub

This action analyzes code using Clang-Tidy. This workflow depends on colcon-build action.

Usage

jobs:
  clang-tidy:
    runs-on: ubuntu-latest
    container: ros:galactic
    needs: build-and-test
    steps:
      - name: Check out repository
        uses: actions/checkout@v3
        with:
          fetch-depth: 0

      - name: Get modified packages
        id: get-modified-packages
        uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1

      - name: Run clang-tidy
        if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
        uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
        with:
          rosdistro: galactic
          clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
          target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
          build-depends-repos: build_depends.repos

Inputs

NameRequiredDescription
rosdistrotrueThe ROS distro.
clang-tidy-config-urltrueThe URL to .clang-tidy.
target-packagestrueThe target packages to analyze by Clang-Tidy.
target-filesfalseThe target files.
build-depends-reposfalseThe .repos file that includes build dependencies.
cmake-build-typefalseThe value for CMAKE_BUILD_TYPE.
tokenfalseThe token for build dependencies and .clang-tidy.

Outputs

None.