Skip to content

Commit 266c1ab

Browse files
committed
ci: support laravel 9
1 parent fda2051 commit 266c1ab

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/laravel-9.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![Laravel 6](https://github.com/laravel-fans/laravel-lint/workflows/Laravel%206/badge.svg)](https://github.com/laravel-fans/laravel-lint/actions)
55
[![Laravel 7](https://github.com/laravel-fans/laravel-lint/workflows/Laravel%207/badge.svg)](https://github.com/laravel-fans/laravel-lint/actions)
66
[![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)
78

89
Check Code Style(default PSR-12) for Laravel
910

0 commit comments

Comments
 (0)