TheWiseNoob is ensuring code quality. :) #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |