Skip to content

Add clang-format-diff to github actions #1

Add clang-format-diff to github actions

Add clang-format-diff to github actions #1

name: clang-format-diff

Check failure on line 2 in .github/workflows/clang-format-diff.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/clang-format-diff.yml

Invalid workflow file

You have an error in your yaml syntax on line 2
on: [pull_request]
jobs:
clang_format_diff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Fetch all history for all tags and branches
with:
fetch-depth: 0
- name: Install clang-format
run: |
sudo apt-get install clang-format-19
sudo update-alternatives --install /usr/bin/git-clang-format git-clang-format /usr/bin/git-clang-format-19 100
- run: tests/clang-format-diff.sh origin/$GITHUB_BASE_REF