Merge pull request #7 from atanasantonov/add_customerBankAccountNumbe… #11
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 PSR Enforcer | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- 'lib/**' | |
- 'tests/**' | |
pull_request: | |
branches: [ master ] | |
types: [ opened, synchronize ] | |
paths: | |
- 'lib/**' | |
- 'tests/**' | |
jobs: | |
phpcs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
extensions: mbstring, intl, curl | |
ini-values: post_max_size=256M | |
coverage: xdebug | |
tools: composer | |
- name: Setup problem matchers for PHP | |
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" | |
- name: Get composer cache directory | |
id: composercache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.composercache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Install dependencies | |
run: composer install --prefer-dist | |
- name: Run PHPCS | |
run: ./vendor/bin/phpcs |