-
Notifications
You must be signed in to change notification settings - Fork 16
39 lines (34 loc) · 1020 Bytes
/
lint_vba.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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