diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..36da29f98 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,15 @@ +name: Asytle format test +on: + push: + branches: [ '*' ] + pull_request: + branches: [ "main" ] +jobs: + build_test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: install dependencies + run: sudo apt install astyle + - name: Astyle + run: astyle **/*.[ch] --options=.astylerc --dry-run | grep -vq "Formatted" \ No newline at end of file