Skip to content

Coding Standards

Coding Standards #85

name: Coding Standards
on:
schedule:
- cron: 0 0 * * 0
jobs:
php-cs-fixer:
name: php-cs-fixer
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- 8.0
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
extensions: intl
php-version: ${{ matrix.php-version }}
- name: Determine composer cache directory
id: composer-cache
run: echo "::set-output name=directory::$(composer config cache-dir)"
- name: Cache dependencies installed with composer
uses: actions/[email protected]
with:
path: ${{ steps.composer-cache.outputs.directory }}
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.*') }}
restore-keys: |
composer-${{ runner.os }}-${{ matrix.php-version }}-
composer-${{ runner.os }}-
composer-
- name: Download dependencies
run: |
composer update --no-interaction --no-progress --optimize-autoloader
- name: Run PHP-CS-Fixer Style
run: ./vendor/bin/php-cs-fixer fix
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
commit-message: Weekly Tidy
title: Weekly Tidy
body: |
- Weekly automated (auto-generated) code tidy
branch: update-dependencies
delete-branch: true