File tree 2 files changed +39
-0
lines changed
2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Laravel 9
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 : php:8.1-cli
15
+ steps :
16
+ - name : Checkout
17
+ uses : actions/checkout@v2
18
+ - name : Prepare
19
+ run : |
20
+ apt update
21
+ apt install -y libzip-dev unzip
22
+ pecl install xdebug
23
+ docker-php-ext-enable xdebug
24
+ cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
25
+ echo 'xdebug.mode=coverage' >> /usr/local/etc/php/php.ini
26
+ curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
27
+ - name : PHPUnit
28
+ run : |
29
+ composer require orchestra/testbench:^v7 --dev
30
+ ./vendor/bin/phpunit --coverage-clover coverage.xml --coverage-filter src/ tests/
31
+ - name : Lint
32
+ run : |
33
+ ./vendor/bin/phpcs --standard=PSR12 src/ tests/
34
+ ./vendor/bin/phpmd . text src/stubs/phpmd.xml
35
+ - name : codecov
36
+ uses : codecov/codecov-action@v2
37
+ with :
38
+ name : laravel-9
Original file line number Diff line number Diff line change 4
4
[ ![ Laravel 6] ( https://github.com/laravel-fans/laravel-lint/workflows/Laravel%206/badge.svg )] ( https://github.com/laravel-fans/laravel-lint/actions )
5
5
[ ![ Laravel 7] ( https://github.com/laravel-fans/laravel-lint/workflows/Laravel%207/badge.svg )] ( https://github.com/laravel-fans/laravel-lint/actions )
6
6
[ ![ Laravel 8] ( https://github.com/laravel-fans/laravel-lint/workflows/Laravel%208/badge.svg )] ( https://github.com/laravel-fans/laravel-lint/actions )
7
+ [ ![ Laravel 9] ( https://github.com/laravel-fans/laravel-lint/workflows/Laravel%209/badge.svg )] ( https://github.com/laravel-fans/laravel-lint/actions )
7
8
8
9
Check Code Style(default PSR-12) for Laravel
9
10
You can’t perform that action at this time.
0 commit comments