Update lint_vba.yml #24
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: Lint VBA | |
on: | |
push: | |
branches: | |
- dev | |
- main | |
pull_request: | |
jobs: | |
test-and-static-analysis: | |
name: Test and Static Analysis | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build Grammar | |
run: | | |
python -m pip install antlr4-python3-runtime | |
python -m pip install antlr4-tools | |
wget https://raw.githubusercontent.com/Beakerboy/grammars-v4/coverage/vba/vba_cc/vba_cc.g4 | |
antlr4 -Dlanguage=Python3 -o deliverables -listener -visitor vba_cc.g4 | |
mv deliverables/*.py src/vba_precompiler/grammar | |
mv deliverables/*.pyi src/vba_precompiler/grammar | |
- name: Precompile | |
run: | | |
python -m pip install --upgrade pip | |
pip install 'vba_precompiler @ git+https://github.com/Beakerboy/VBA-Precompiler@dev' | |
python -m vba_precompiler ./src | |
rm -rf ./src | |
- name: Lint | |
uses: Vba-actions/lint-vba@main |