Skip to content

TheWiseNoob is ensuring code quality. :) #77

TheWiseNoob is ensuring code quality. :)

TheWiseNoob is ensuring code quality. :) #77

Workflow file for this run

name: Lint & Build
run-name: ${{ github.actor }} is ensuring code quality. :)
on: [push]
jobs:
Test-OMP:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: sudo apt-get install clang-format
- name: Check For Formatting Errors
id: format_check
run: |
cd src
errors=$(clang-format --dry-run *.cc *.h 2>&1; echo $?)
if [ -z "$errors" ]
then
echo "Format is valid. Nice!"
else
echo "::error::Formatting errors were found."
exit 1
fi