chore: Use only pre-commit hooks (#2057)

Co-authored-by: Maria Shodunke <maria-robobug@users.noreply.github.com>
This commit is contained in:
Ayaz Salikhov
2025-04-29 18:18:42 +01:00
committed by GitHub
parent 0c201ed952
commit de055934e1
13 changed files with 77 additions and 86 deletions

View File

@@ -7,41 +7,8 @@ on:
workflow_dispatch:
jobs:
check_format:
name: Check format
runs-on: ubuntu-latest
container:
image: ghcr.io/xrplf/clio-ci:latest
steps:
- name: Fix git permissions on Linux
shell: bash
run: git config --global --add safe.directory $PWD
- uses: actions/checkout@v4
- name: Run formatters
id: run_formatters
run: |
./.githooks/check-format --diff
shell: bash
check_docs:
name: Check documentation
runs-on: ubuntu-latest
container:
image: ghcr.io/xrplf/clio-ci:latest
steps:
- uses: actions/checkout@v4
- name: Run linter
id: run_linter
run: |
./.githooks/check-docs
shell: bash
build:
name: Build
needs:
- check_format
- check_docs
strategy:
fail-fast: false
matrix:

View File

@@ -65,11 +65,11 @@ jobs:
run: |
run-clang-tidy-19 -p build -j ${{ steps.number_of_threads.outputs.threads_number }} -fix -quiet 1>output.txt
- name: Check format
- name: Fix local includes
if: ${{ steps.run_clang_tidy.outcome != 'success' }}
continue-on-error: true
shell: bash
run: ./.githooks/check-format
run: pre-commit run --all-files fix-local-includes
- name: Print issues found
if: ${{ steps.run_clang_tidy.outcome != 'success' }}