Skip to content

Add check tests to meson test #2110

Add check tests to meson test

Add check tests to meson test #2110

Workflow file for this run

name: astyle
on:
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
astyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install dependencies
run: sudo apt-get install astyle
- name: astyle check
id: astyle
run: |
ARTISTIC_STYLE_OPTIONS=".astylerc" astyle -Q --recursive ./src/*.cpp,*.c,*.hpp,*.h > astyle.out
TEST=$(cat astyle.out | wc -l)
if [ $TEST -gt 3 ]; then exit 1; fi
- name: Show required astyle changes
if: failure()
run: git diff