Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Merge pull request #2735 from showengineer/main #988

Merge pull request #2735 from showengineer/main

Merge pull request #2735 from showengineer/main #988

Workflow file for this run

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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.