Projects: ad2s1210: Add support for ad2s1210 #13
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 source code | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Update no-OS submodule | |
run: | | |
git submodule update --init libraries/no-OS | |
- name: Run astyle on source code | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y astyle fd-find | |
set -e | |
formatted=$(fdfind -e c -e h . projects | xargs astyle --formatted --options=libraries/no-OS/ci/astyle_config) | |
if [[ ! -z "${formatted}" ]]; then | |
echo "ERROR: The following files were formatted by astyle:" | |
echo "${formatted}" | |
exit 1 | |
fi | |
echo "SUCCESS: No files were formatted by astyle" |