Skip to content

Bump actions/dependency-review-action from 4.3.2 to 4.3.3 #244

Bump actions/dependency-review-action from 4.3.2 to 4.3.3

Bump actions/dependency-review-action from 4.3.2 to 4.3.3 #244

name: Check Code Formatting for AD-Map Library
on:
push:
branches: master
pull_request:
branches: master
permissions:
contents: read
jobs:
check_cpp:
name: Check Code Formatting
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
egress-policy: audit
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
submodules: true
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install clang-format-14
- name: Check Formatting
run: failed=0; for file in `find . -path ./dependencies -prune -false -o -iname *.cpp -o -iname *.hpp`; do if [ `clang-format-14 $file -output-replacements-xml | grep -c "<replacement "` -ne 0 ]; then echo "$file does not match codeing style. Please run clang-format-14"; failed=1; fi; if [ $failed -ne 0 ]; then exit 1; fi; done