-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (37 loc) · 1.35 KB
/
php-cs-fixer.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
47
48
name: Check & Fix Styling
on:
workflow_dispatch:
push:
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, 'skip lint')"
strategy:
matrix:
php-version: [ 8.1 ]
#dependency-versions: [ lowest, highest ]
dependency-versions: [ lowest ]
name: PHP ${{ matrix.php-version }} | ${{ matrix.dependency-versions }}
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2, php-cs-fixer
#- name: Add HTTP Basic Auth Credentials
# run: echo '${{ secrets.COMPOSER_AUTH_JSON }}' > $GITHUB_WORKSPACE/auth.json
- name: Install Composer Dependencies
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.dependency-versions }}
composer-options: "--optimize-autoloader --no-interaction --no-progress"
#- name: Remove auth.json File
# run: rm -f $GITHUB_WORKSPACE/auth.json
- name: Run Code Style Check
run: composer lint
- name: 🟢 Commit Changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Fix styling