Skip to content

Commit cd596f3

Browse files
committed
ci: deploy astyle
Signed-off-by: Frederic Pillon <[email protected]>
1 parent cc39046 commit cd596f3

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/astyle.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: astyle
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths-ignore:
7+
- '*.json'
8+
- '**.md'
9+
- keywords.txt
10+
- library.properties
11+
pull_request:
12+
paths-ignore:
13+
- '*.json'
14+
- '**.md'
15+
- keywords.txt
16+
- library.properties
17+
workflow_dispatch:
18+
jobs:
19+
astyle:
20+
name: Check code formatting
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@main
24+
- uses: stm32duino/actions/astyle-check@main
25+
# Use the output from the `Astyle` step
26+
- name: Astyle Errors
27+
if: failure()
28+
run: |
29+
cat ${{ steps.Astyle.outputs.astyle-result }}
30+
exit 1

0 commit comments

Comments
 (0)