Merge pull request #7 from FriendsOfREDAXO/dependabot/composer/lib/ph… #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 CS Fixer | |
on: | |
push: | |
branches: [ master, main ] | |
pull_request: | |
branches: [ master, main ] | |
permissions: | |
contents: read | |
jobs: | |
code-style: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # for Git to git apply | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
extensions: gd, intl, pdo_mysql | |
coverage: none # disable xdebug, pcov | |
# install dependencies from composer.json | |
- name: Install test dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Run PHP CS Fixer | |
run: composer cs-dry | |
# - uses: stefanzweifel/git-auto-commit-action@v4 | |
# with: | |
# commit_message: Apply php-cs-fixer changes |