-
Notifications
You must be signed in to change notification settings - Fork 982
48 lines (46 loc) · 1.14 KB
/
astyle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Check code formatting with astyle
on:
push:
branches:
- main
paths-ignore:
- '*.json'
- '**.md'
- keywords.txt
- CI/**
- '!CI/astyle/.astyleignore'
- '!CI/astyle/.astylerc'
- '!CI/astyle/astyle.py'
- tools/**
pull_request:
paths-ignore:
- '*.json'
- '**.md'
- keywords.txt
- CI/**
- '!CI/astyle/.astyleignore'
- '!CI/astyle/.astylerc'
- '!CI/astyle/astyle.py'
- tools/**
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
astyle_check:
runs-on: ubuntu-latest
name: Check for astyle errors
steps:
# First of all, clone the repo using the checkout action.
- name: Checkout
uses: actions/checkout@v4
- name: Astyle check
id: Astyle
uses: stm32duino/actions/astyle-check@v1
with:
astyle-definition: 'CI/astyle/.astylerc'
ignore-path-list: 'CI/astyle/.astyleignore'
# Use the output from the `Astyle` step
- name: Astyle Errors
if: failure()
run: |
cat ${{ steps.Astyle.outputs.astyle-result }}
exit 1