-
-
Notifications
You must be signed in to change notification settings - Fork 30
46 lines (39 loc) · 1.02 KB
/
styling.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: fix-styling
on:
pull_request:
push:
branches:
- main
jobs:
styling:
name: fix-styling
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest ]
php: [ 8.1 ]
laravel: [ 10.*]
dependency-version: [ prefer-stable ]
include:
- laravel: 10.*
testbench: ^8.0
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: composer:v2
coverage: false
- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction
- name: PHP-Code Sniffer Beautifier
run: ./vendor/bin/phpcbf
- name: PHP-CS-Fixer
run: ./vendor/bin/php-cs-fixer fix
- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: styling fixes