Merge pull request #115 from maxbaldanza/formatting #57
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: Code style check | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
phpcs: | |
name: Code style check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# https://github.com/shivammathur/setup-php | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.0 | |
tools: composer | |
# Specific versions of extensions available on PECL can be set up by suffixing the extension's name with the version. | |
# https://github.com/shivammathur/setup-php?tab=readme-ov-file#heavy_plus_sign-php-extension-support | |
extensions: apcu, redis-5.3.7, memcached, mongodb | |
env: | |
fail-fast: true | |
- name: Update dependencies with composer | |
run: composer update | |
- name: Run php-cs-fixer | |
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff . |