ladislas/feature/ci functional system refactor #5790
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
# Leka - LekaOS | |
# Copyright 2021 APF France handicap | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Code Analysis - Clang-Tidy | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
types: [opened, synchronize, reopened] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
run: | |
runs-on: ubuntu-22.04 | |
steps: | |
# | |
# Mark: - Setup | |
# | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- name: Setup CI | |
uses: ./.github/actions/setup | |
# | |
# Mark: - Config | |
# | |
- name: Generate compile_commands.json | |
run: | | |
make config_tools | |
make config_tools_build | |
# | |
# Mark: - Analyze | |
# | |
- name: Run clang-tidy | |
run: | | |
make clang_tidy_diff |