Skip to content

ci: review #1876

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
ci(astyle): made astyle check standalone workflow
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
  • Loading branch information
fpistm committed Nov 23, 2022
commit c9ff285c0070ee340dd45571e3af451cb6fde647
21 changes: 0 additions & 21 deletions .github/workflows/Continuous-Integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,6 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
astyle_check:
runs-on: ubuntu-latest
name: AStyle check
steps:
# First of all, clone the repo using the checkout action.
- name: Checkout
uses: actions/checkout@main

- name: Astyle check
id: Astyle
uses: stm32duino/actions/astyle-check@main
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
core_build:
runs-on: ubuntu-latest
name: Core compilation
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/astyle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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@main

- name: Astyle check
id: Astyle
uses: stm32duino/actions/astyle-check@main
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