Skip to content

Commit

Permalink
Add astyle test to Github Workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Duc Tri Nguyen <[email protected]>
  • Loading branch information
cothan committed Mar 27, 2024
1 parent f53be7d commit acaec50
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit acaec50

Please sign in to comment.