kumagi / clang-format-action

A github action to run clang-format on all C/C++ sources in a repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clang format Github action

This project can be used to run clang-format on every push using Github actions.

Usage

For a more detailed installation guide look there

Create a formatter.yml file in .github/workflows/. Paste this code into the file:

on: push
name: clang-format Code Formatter
jobs:
  lint:
    name: clang-format Code Formatter
    runs-on: ubuntu-latest
    steps:
    - name: Clang Code Formatter
      uses: antoinealb/clang-format-action@clang9
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

About

A github action to run clang-format on all C/C++ sources in a repository

License:MIT License


Languages

Language:Shell 61.3%Language:Dockerfile 38.7%