Skip to content

Commit 3de720d

Browse files
authoredMay 11, 2020
Merge pull request #36350 from m-kuhn/code_layout_test_to_github_workflow
Install indentation/astyle deps for static tests
2 parents 02df257 + 84e6378 commit 3de720d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
 

‎.github/workflows/code_layout.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ jobs:
102102
uses: actions/checkout@v2
103103
with:
104104
fetch-depth: 100
105+
- name: Install Requirements
106+
run: |
107+
sudo apt install -y \
108+
astyle \
109+
python-autopep8 \
110+
flip
105111
- name: Indentation Test
106112
run: ./scripts/verify_indentation.sh HEAD~1
107113

‎scripts/verify_indentation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ASTYLEDIFF=/tmp/astyle.diff
2020
true > $ASTYLEDIFF
2121

2222

23-
echo "Commit range: $1"
23+
# echo "Commit range: $1"
2424
FILES=$(git diff --diff-filter=AM --name-only $1 | tr '\n' ' ' )
2525

2626
for f in $FILES; do

0 commit comments

Comments
 (0)
Please sign in to comment.