rework hooks in pluginex class #1880
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: astyle | |
on: | |
pull_request: | |
branches: [ main ] | |
permissions: | |
contents: read | |
jobs: | |
astyle: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- 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 |