Skip to content

Update lint_vba.yml #18

Update lint_vba.yml

Update lint_vba.yml #18

Workflow file for this run

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: |
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
stubgen ./deliverables -o ./deliverables
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