mirror of
https://github.com/AntiMicroX/antimicrox.git
synced 2026-06-12 01:44:49 -04:00
- Adds infer - remove parallel from builds - Add name to code formatting CI Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
32 lines
869 B
YAML
32 lines
869 B
YAML
name: Check code formatting
|
|
|
|
concurrency:
|
|
group: format-${{ github.head_ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
test:
|
|
# The type of runner that the job will run on
|
|
name: Check Code Formatting
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Download tools
|
|
run: |
|
|
sudo apt-get update && sudo apt-get install clang-format-10
|
|
echo "Clang-format version"
|
|
clang-format --version
|
|
wget https://raw.githubusercontent.com/Sarcasm/run-clang-format/master/run-clang-format.py
|
|
chmod +x ./run-clang-format.py
|
|
|
|
- name: Test
|
|
run: ./run-clang-format.py -r src
|