File tree Expand file tree Collapse file tree 2 files changed +20
-24
lines changed Expand file tree Collapse file tree 2 files changed +20
-24
lines changed Original file line number Diff line number Diff line change @@ -12,28 +12,24 @@ jobs:
1212 runs-on : ubuntu-latest
1313 strategy :
1414 matrix :
15- php : ['8.2' ]
15+ python-version : ["3.11" ]
1616
1717 steps :
18- - name : Set up PHP
19- uses : shivammathur/setup-php@v2
20- with :
21- php-version : ${{ matrix.php }}
22- tools : composer:v2
23-
24- - name : Set up Node
25- uses : actions/setup-node@v1
26- with :
27- node-version : ' 14.x'
28-
29- - name : Checkout code
30- uses : actions/checkout@v2
31- with :
32- fetch-depth : 0
33-
34- - name : PHP Code Sniffer
35- run : |
36- composer require --no-install --no-update beakerboy/vba_tokenizer:dev-master
37- composer config repositories.beakerboy vcs https://github.com/Beakerboy/VBA_Tokenizer
38- composer update
39- vendor/bin/phpcs --extensions=cls/vba,bas/vba,frm/vba --standard=vendor/beakerboy/vba_tokenizer/src/Standards/VBA src/Modules src/ClassModules src/Forms
18+ - uses : actions/checkout@v3
19+ - name : Set up Python ${{ matrix.python-version }}
20+ uses : actions/setup-python@v3
21+ with :
22+ python-version : ${{ matrix.python-version }}
23+ - name : Install dependencies
24+ run : |
25+ python -m pip install antlr4-tools
26+ wget https://raw.githubusercontent.com/antlr/grammars-v4/master/vba/vba.g4
27+ - name : Lint with antlr
28+ run : |
29+ antlr4-parse vba.g4 startRule src/ClassModules/*.cls
30+ antlr4-parse vba.g4 startRule src/Modules/*.bas
31+ - name : Lint tests with antlr
32+ run : |
33+ antlr4-parse vba.g4 startRule testing/ClassModules/*.cls
34+ antlr4-parse vba.g4 startRule testing/Modules/*.bas
35+
Original file line number Diff line number Diff line change @@ -37,6 +37,6 @@ Public Function State()
3737End Function
3838
3939' Property: EOF
40- Public Property EOF()
40+ Property Get EOF()
4141
4242End Property
You can’t perform that action at this time.
0 commit comments