Skip to content

Commit

Permalink
Merge pull request #127 from FriendsOfREDAXO/skerbis-patch-2
Browse files Browse the repository at this point in the history
Create cs-fix-manual.yml
  • Loading branch information
skerbis authored Feb 14, 2025
2 parents d09e54a + 837de79 commit aa5c4a8
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/cs-fix-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: PHP-CS-Fixer

on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
workflow_dispatch: # Ermöglicht die manuelle Ausführung

permissions:
contents: read

jobs:
code-style:

runs-on: ubuntu-latest
permissions:
contents: write # for Git to git apply

steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref || github.ref_name }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: gd, intl, pdo_mysql
coverage: none # disable xdebug, pcov

# install dependencies from composer.json
- name: Install test dependencies
env:
COMPOSER: composer.json
run: composer install --prefer-dist --no-progress

# run php-cs-fixer, fix code styles
- name: Run PHP CS Fixer
run: composer cs-fix

# commit and push fixed files
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply php-cs-fixer changes

0 comments on commit aa5c4a8

Please sign in to comment.