Skip to content

Projects: ad2s1210: Add support for ad2s1210 #13

Projects: ad2s1210: Add support for ad2s1210

Projects: ad2s1210: Add support for ad2s1210 #13

Workflow file for this run

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"