WIP: Novas funcionalidades e melhorias #27
Workflow file for this run
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: PHP Compatibility | |
on: | |
push: | |
branches: '*' | |
pull_request: | |
branches: '*' | |
jobs: | |
test: | |
name: Test @ PHP ${{ matrix.php-version }} - x86 - ubuntu-latest | |
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.actor != 'dependabot[bot]') | |
strategy: | |
matrix: | |
php-version: | |
- "7.4" | |
- "8.0" | |
- "8.1" | |
- "8.2" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Dependencies::PHP${{ matrix.php-version }} | |
run: | | |
echo "$HOME/.composer/vendor/bin" >> $GITHUB_PATH | |
composer global config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true | |
composer global require dealerdirect/phpcodesniffer-composer-installer roave/security-advisories:dev-master squizlabs/php_codesniffer phpcompatibility/php-compatibility | |
- name: Check PHP Compatibility | |
run: phpcs --standard=PHPCompatibility -s -q -n --colors --runtime-set testVersion ${{ matrix.php-version }} --extensions=php,inc,lib --ignore=sdk,node_modules,vendor,templates_c,lang,Legacy,templates,Migrations --severity=3 ./modules/addons/NFEioServiceInvoices | |
- name: Check PSR12 Standard | |
run: phpcs --standard=PSR12 -s -q -n --colors --extensions=php,inc,lib --ignore=sdk,node_modules,vendor,templates_c,lang,Legacy,templates,Migrations --severity=3 ./modules/addons/NFEioServiceInvoices |