Database Server and Database State Server metrics #1
Workflow file for this run
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
name: Lint | |
on: [pull_request] | |
jobs: | |
clang-tidy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install clang-tidy | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y cmake g++ gcc libssl-dev prometheus-cpp-dev clang-tidy | |
- name: Prepare compile_commands.json | |
run: | | |
cmake -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DARDOS_WANT_DB_SERVER=OFF | |
- name: Create results directory | |
run: | | |
mkdir clang-tidy-result | |
- name: Analyze | |
run: | | |
git diff -U0 HEAD^ | clang-tidy-diff -p1 -path build -export-fixes clang-tidy-result/fixes.yml | |
- name: Post review | |
uses: platisd/clang-tidy-pr-comments@master | |
with: | |
github_token: ${{ github.token }} | |
clang_tidy_fixes: clang-tidy-result/fixes.yml | |
request_changes: true | |
suggestions_per_comment: 10 |