mirror of
https://github.com/ETLCPP/etl.git
synced 2026-10-28 18:07:10 +08:00
* Update _index.md * Update _index.md * ci: cancel superseded workflow runs * ci: serialize documentation deployments --------- Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
name: clang-tidy
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, development, pull-request/* ]
|
|
paths:
|
|
- '.github/workflows/**'
|
|
- 'include/**'
|
|
- 'test/**'
|
|
- 'CMakeLists.txt'
|
|
- 'cmake/**'
|
|
- 'BUILD.bazel'
|
|
- 'MODULE.bazel*'
|
|
- 'meson.build'
|
|
- 'meson_options.txt'
|
|
- 'subprojects/**'
|
|
- '.devcontainer/**'
|
|
pull_request:
|
|
branches: [ master, development, pull-request/* ]
|
|
types: [opened, synchronize, reopened]
|
|
paths:
|
|
- '.github/workflows/**'
|
|
- 'include/**'
|
|
- 'test/**'
|
|
- 'CMakeLists.txt'
|
|
- 'cmake/**'
|
|
- 'BUILD.bazel'
|
|
- 'MODULE.bazel*'
|
|
- 'meson.build'
|
|
- 'meson_options.txt'
|
|
- 'subprojects/**'
|
|
- '.devcontainer/**'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
clang-tidy:
|
|
name: clang-tidy
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v6.0.3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y --no-install-recommends clang clang-tidy
|
|
clang --version
|
|
clang-tidy --version
|
|
run-clang-tidy --version || true
|
|
|
|
- name: Run clang-tidy
|
|
run: |
|
|
test/run-clang-tidy.sh
|