Skip to content

Refactor documentation workflow #518

Refactor documentation workflow

Refactor documentation workflow #518

Workflow file for this run

#
# This file is part of Edgehog.
#
# Copyright 2021 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
name: "Check formatting"
on:
pull_request:
push:
jobs:
clang-format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install run-clang-format
run: |
sudo apt-get update
sudo apt-get install -y clang-format
curl -sSfL https://raw.githubusercontent.com/Sarcasm/run-clang-format/master/run-clang-format.py -o run-clang-format
chmod +x run-clang-format
- name: Check formatting library
run: |
./run-clang-format --style=file -r src/*.c include/*.h private/*.h
- name: Check formatting examples
run: |
./run-clang-format --style=file examples/**/main/main.c examples/**/main/src/*.c examples/**/main/include/*.h