File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 test :
1010 runs-on : ubuntu-latest
1111
12- services :
13- docker :
14- image : docker:20.10.7
15- options : --privileged
16-
1712 steps :
1813 - name : Checkout code
1914 uses : actions/checkout@v4
2015
21- - name : Set up Python
22- uses : actions/setup-python@v5
23- with :
24- python-version : ' 3.x'
25-
26- - name : Install dependencies
27- run : pip install vim-vint
28-
2916 - name : Run tests
3017 run : make test
Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -6,26 +6,18 @@ ERRORS=()
66
77# find all executables and run `shellcheck`
88for f in $( find . -type f -not -iwholename ' *.git*' -not -iwholename ' *.vim*' | sort -u) ; do
9- if file " $f " | grep --quiet shell; then
10- {
11- shellcheck " $f " && echo -e " \\ 033[32m[OK]\\ 033[0m: successfully linted $f "
12- } || {
13- ERRORS+=(" $f " )
14- }
15- fi
16- done
17-
18- for f in $( find . -name ' *.vim' ! -name ' .vim' ! -path ' *undo*' ! -path ' *autoload*' ! -path ' *plugged*' ! -path ' *.config*' | sort -u) ; do
19- {
20- vint " $f " && echo -e " \\ 033[32m[OK]\\ 033[0m: sucessfully linted vim script $f "
21- } || {
22- ERRORS+=(" $f " )
23- }
9+ if file " $f " | grep --quiet shell; then
10+ {
11+ shellcheck " $f " && echo -e " \\ 033[32m[OK]\\ 033[0m: successfully linted $f "
12+ } || {
13+ ERRORS+=(" $f " )
14+ }
15+ fi
2416done
2517
2618if [ ${# ERRORS[@]} -eq 0 ]; then
27- echo " No errors"
19+ echo " No errors"
2820else
29- echo " These files failed shellcheck: ${ERRORS[*]} "
30- exit 1
21+ echo " These files failed shellcheck: ${ERRORS[*]} "
22+ exit 1
3123fi
You can’t perform that action at this time.
0 commit comments