changed line endings (#44) #10
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 | |
- master | |
pull_request: | |
jobs: | |
test-and-static-analysis: | |
name: Test and Static Analysis | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: ['8.2'] | |
steps: | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2 | |
- name: Set up Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '14.x' | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: PHP Code Sniffer | |
run: | | |
composer require --no-install --no-update beakerboy/vba_tokenizer:dev-master | |
composer config repositories.beakerboy vcs https://github.com/Beakerboy/VBA_Tokenizer | |
composer update | |
vendor/bin/phpcs --extensions=cls/vba,bas/vba,frm/vba --standard=vendor/beakerboy/vba_tokenizer/src/Standards/VBA src/Modules src/ClassModules src/Forms |