File tree Expand file tree Collapse file tree 3 files changed +90
-0
lines changed Expand file tree Collapse file tree 3 files changed +90
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Laravel 10
2+ on :
3+ push :
4+ branches :
5+ - main
6+ pull_request :
7+ branches :
8+ - main
9+ jobs :
10+ test :
11+ name : Test
12+ runs-on : ubuntu-latest
13+ container :
14+ image : laravelfans/laravel:10-dev
15+ steps :
16+ -
17+ name : Checkout
18+ uses : actions/checkout@v4
19+ -
20+ name : PHPUnit
21+ env :
22+ XDEBUG_MODE : coverage
23+ run : |
24+ composer require orchestra/testbench:^v8 --dev
25+ ./vendor/bin/phpunit --coverage-clover coverage.xml --coverage-filter src/ tests/
26+ -
27+ name : Lint
28+ run : |
29+ ./vendor/bin/phpcs --standard=PSR12 src/ tests/
30+ ./vendor/bin/phpmd . text src/stubs/phpmd.xml
31+ -
32+ name : Upload coverage to Codecov
33+ uses : codecov/codecov-action@v4
34+ with :
35+ name : laravel-10
36+ token : ${{ secrets.CODECOV_TOKEN }}
37+ -
38+ name : install in real Laravel project
39+ run : |
40+ rm -rf laravel-demo
41+ composer create-project --prefer-dist laravel/laravel laravel-demo "10.*"
42+ cd laravel-demo && composer require --dev laravel-fans/lint:dev-${CI_ACTION_REF_NAME} && php artisan lint:publish
43+ php artisan lint:code --help
44+ php artisan lint:code database/
Original file line number Diff line number Diff line change 1+ name : Laravel 11
2+ on :
3+ push :
4+ branches :
5+ - main
6+ pull_request :
7+ branches :
8+ - main
9+ jobs :
10+ test :
11+ name : Test
12+ runs-on : ubuntu-latest
13+ container :
14+ image : laravelfans/laravel:11-dev
15+ steps :
16+ -
17+ name : Checkout
18+ uses : actions/checkout@v4
19+ -
20+ name : PHPUnit
21+ env :
22+ XDEBUG_MODE : coverage
23+ run : |
24+ composer require orchestra/testbench:^v9 --dev
25+ ./vendor/bin/phpunit --coverage-clover coverage.xml --coverage-filter src/ tests/
26+ -
27+ name : Lint
28+ run : |
29+ ./vendor/bin/phpcs --standard=PSR12 src/ tests/
30+ ./vendor/bin/phpmd . text src/stubs/phpmd.xml
31+ -
32+ name : Upload coverage to Codecov
33+ uses : codecov/codecov-action@v4
34+ with :
35+ name : laravel-11
36+ token : ${{ secrets.CODECOV_TOKEN }}
37+ -
38+ name : install in real Laravel project
39+ run : |
40+ rm -rf laravel-demo
41+ composer create-project --prefer-dist laravel/laravel laravel-demo "11.*"
42+ cd laravel-demo && composer require --dev laravel-fans/lint:dev-${CI_ACTION_REF_NAME} && php artisan lint:publish
43+ php artisan lint:code --help
44+ php artisan lint:code database/
Original file line number Diff line number Diff line change 33[ ![ codecov] ( https://codecov.io/gh/laravel-fans/laravel-lint/graph/badge.svg?token=QJjYkPVnr4 )] ( https://codecov.io/gh/laravel-fans/laravel-lint )
44![ Packagist Downloads] ( https://img.shields.io/packagist/dm/laravel-fans/lint )
55[ ![ Laravel 9] ( https://github.com/laravel-fans/laravel-lint/actions/workflows/laravel-9.yml/badge.svg )] ( https://github.com/laravel-fans/laravel-lint/actions/workflows/laravel-9.yml )
6+ [ ![ Laravel 10] ( https://github.com/laravel-fans/laravel-lint/actions/workflows/laravel-10.yml/badge.svg )] ( https://github.com/laravel-fans/laravel-lint/actions/workflows/laravel-10.yml )
7+ [ ![ Laravel 11] ( https://github.com/laravel-fans/laravel-lint/actions/workflows/laravel-11.yml/badge.svg )] ( https://github.com/laravel-fans/laravel-lint/actions/workflows/laravel-11.yml )
68
79Check Code Style(default PSR-12) for Laravel
810
You can’t perform that action at this time.
0 commit comments