Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

feat: Grafos, Caminhos e Ciclos #7

feat: Grafos, Caminhos e Ciclos

feat: Grafos, Caminhos e Ciclos #7

Workflow file for this run

name: clang-format
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
clang-format:
name: Check code formatting using clang-format
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install clang-format
- name: Check formatting C code
run: |
find . -type f -name "*.c" -exec clang-format -n -Werror --ferror-limit=1 {} \;
- name: Check formatting C++ code
run: |
find . -type f -name "*.c" -exec clang-format -n -Werror --ferror-limit=1 {} \;
- name: Check formatting C header code
run: |
find . -type f -name "*.c" -exec clang-format -n -Werror --ferror-limit=1 {} \;
- name: Check formatting C++ header code
run: |
find . -type f -name "*.c" -exec clang-format -n -Werror --ferror-limit=1 {} \;