Skip to content

Commit eb41512

Browse files
committed
add php-cs-fixer
1 parent 91efc38 commit eb41512

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

.github/workflows/php-cs-fixer.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: php-cs-fixer
2+
3+
on: [push]
4+
5+
jobs:
6+
php-cs-fixer:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
with:
13+
ref: ${{ github.head_ref }}
14+
15+
- name: Run PHP CS Fixer
16+
uses: docker://oskarstark/php-cs-fixer-ga
17+
with:
18+
args: --config=.php_cs.dist.php --allow-risky=yes
19+
20+
- name: Commit changes
21+
uses: stefanzweifel/git-auto-commit-action@v4
22+
with:
23+
commit_message: Fix styling
File renamed without changes.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Very short description of the package
22

33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/blamebutton/laravel-changelog.svg?style=flat-square)](https://packagist.org/packages/blamebutton/laravel-changelog)
4-
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/blamebutton/laravel-changelog/run-tests?label=tests)](https://github.com/blamebutton/laravel-changelog/actions?query=workflow%3Arun-tests+branch%3Amain)
5-
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/blamebutton/laravel-changelog/Check%20&%20fix%20styling?label=code%20style)](https://github.com/blamebutton/laravel-changelog/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
4+
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/blamebutton/laravel-changelog/phpunit?label=tests)](https://github.com/blamebutton/laravel-changelog/actions?query=workflow%3Arun-tests+branch%3Amain)
5+
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/blamebutton/laravel-changelog/php-cs-fixer?label=code%20style)](https://github.com/blamebutton/laravel-changelog/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
66
[![Total Downloads](https://img.shields.io/packagist/dt/blamebutton/laravel-changelog.svg?style=flat-square)](https://packagist.org/packages/blamebutton/laravel-changelog)
77

88
This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

0 commit comments

Comments
 (0)