Skip to content

Commit ac1116a

Browse files
committed
ci: #10 lint code
1 parent 74e520d commit ac1116a

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/laravel-6.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,19 @@ jobs:
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v2
18-
- name: PHPUnit
18+
- name: Prepare
1919
run: |
2020
apt update
2121
apt install -y libzip-dev unzip
2222
pecl install xdebug
2323
docker-php-ext-enable xdebug
2424
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
25+
- name: PHPUnit
26+
run: |
2527
composer require orchestra/testbench:^v4 --dev
2628
./vendor/bin/phpunit --coverage-clover coverage.xml --coverage-filter src/ tests/
29+
- name: Lint
30+
run: ./vendor/bin/phpcs --standard=PSR12 src/ tests/
2731
- name: codecov
2832
uses: codecov/codecov-action@v1
2933
with:

.github/workflows/laravel-7.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,20 @@ jobs:
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v2
18-
- name: PHPUnit
18+
- name: Prepare
1919
run: |
2020
apt update
2121
apt install -y libzip-dev unzip
2222
pecl install xdebug
2323
docker-php-ext-enable xdebug
2424
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
25+
- name: PHPUnit
26+
run: |
2527
composer require orchestra/testbench:^v5 --dev
2628
./vendor/bin/phpunit --coverage-clover coverage.xml --coverage-filter src/ tests/
29+
- name: Lint
30+
run: ./vendor/bin/phpcs --standard=PSR12 src/ tests/
2731
- name: codecov
2832
uses: codecov/codecov-action@v1
2933
with:
30-
name: laravel-6
34+
name: laravel-7

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/.idea/
22
/composer.lock
3+
/coverage.xml
34
/vendor/

0 commit comments

Comments
 (0)