Skip to content

Update FileRepository.php #17

Update FileRepository.php

Update FileRepository.php #17

Workflow file for this run

name: Style
on:
pull_request:
paths:
- '**.php'
push:
paths:
- '**.php'
jobs:
style:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@master #https://github.com/shivammathur/setup-php
with:
php-version: 8.3
extension: mbstring, dom, fileinfo, mysql, zip
coverage: xdebug #optional
- name: Install Composer dependencies
run: |
composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
composer require --dev friendsofphp/php-cs-fixer
- name: Run fix:style
run: |
export PATH="$HOME/.composer/vendor/bin:$PATH"
./vendor/bin/php-cs-fixer fix src
./vendor/bin/php-cs-fixer fix tests
- uses: stefanzweifel/git-auto-commit-action@v2.1.0
with:
commit_message: Apply style changes
branch: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}