-
Notifications
You must be signed in to change notification settings - Fork 387
40 lines (40 loc) · 1.59 KB
/
lint.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
name: PHP Lint (Pint)
on: [push, pull_request]
jobs:
build-assets:
strategy:
matrix:
operating-system:
- ubuntu-22.04
php-version:
- '8.3'
name: ${{ matrix.operating-system }}
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup PHP 8.3
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: curl, dom, gd, libxml, mbstring, zip, mysql, xml, intl, bcmath, redis-phpredis/[email protected]
ini-values: error_reporting=E_ALL
coverage: pcov
tools: composer:v2
env:
REDIS_CONFIGURE_OPTS: --enable-redis
- name: Install Composer Dependencies
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --optimize-autoloader
- name: Run Pint
run: ./vendor/bin/pint
- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: PHP Style Change (Laravel Pint CI)
commit_user_name: HDVinne
commit_user_email: [email protected]
commit_author: HDVinnie <[email protected]>