forked from orisintel/laravel-online-migrator
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 915 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: tests
on:
push:
jobs:
styling:
name: PHP-CS-Fixer
runs-on: ubuntu-latest
steps:
- name: Checkout branch
if: github.ref != 'refs/heads/master'
uses: actions/checkout@v2
- name: Cache .php_cs.cache
if: github.ref != 'refs/heads/master'
uses: actions/cache@v2
with:
path: ./.php_cs.cache
key: php-cs-cache
- name: Run php-cs-fixer
if: github.ref != 'refs/heads/master'
uses: docker://oskarstark/php-cs-fixer-ga
- name: Apply fixes
if: github.ref != 'refs/heads/master'
uses: stefanzweifel/[email protected]
with:
branch: ${{ github.head_ref }}
commit_message: Automatic application of php-cs-fixer changes