Merge pull request #785 from moneyphp/dev_dep #561
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: Static analysis | |
on: | |
push: | |
pull_request: | |
jobs: | |
phpcs: | |
name: PHP-CodeSniffer | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
extensions: bcmath, gmp, intl, dom, mbstring | |
- name: Download dependencies | |
run: composer install --classmap-authoritative | |
- name: PHP CS | |
run: vendor/bin/phpcs |