Skip to content

Commit 7e68b16

Browse files
committed
ci: #9 Laravel 8 and PHP 8
1 parent ac1116a commit 7e68b16

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/laravel-8.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Laravel 8
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-20.04
13+
container:
14+
image: php:8.0-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+
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
25+
- name: PHPUnit
26+
run: |
27+
composer require orchestra/testbench:^v6 --dev
28+
./vendor/bin/phpunit --coverage-clover coverage.xml --coverage-filter src/ tests/
29+
- name: Lint
30+
run: ./vendor/bin/phpcs --standard=PSR12 src/ tests/
31+
- name: codecov
32+
uses: codecov/codecov-action@v1
33+
with:
34+
name: laravel-8

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![codecov](https://codecov.io/gh/laravel-fans/laravel-lint/branch/main/graph/badge.svg)](https://codecov.io/gh/laravel-fans/laravel-lint)
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)
6+
[![Laravel 8](https://github.com/laravel-fans/laravel-lint/workflows/Laravel%208/badge.svg)](https://github.com/laravel-fans/laravel-lint/actions)
67

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

0 commit comments

Comments
 (0)