[SPN-1438] Guardrail to add deprecated metric for class methods in the codebase #108
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: Continuous Integration | |
on: | |
pull_request: | |
paths-ignore: | |
- '.github/**' | |
branches: | |
- master | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: composer install -o | |
- name: Unit Tests | |
run: cd tests; ../vendor/bin/phpunit; cd .. | |
- name: Static Index | |
run: php src/bin/guardrail.php -i -j self.json | |
- name: Static Analyze | |
run: php src/bin/guardrail.php -a -j self.json |