Skip to content

Commit 64b7d99

Browse files
Add Laravel 9 + PHP 8.1 to tests (#11)
* remove codecov * Add Laravel 9 and PHP 8.1
1 parent 0a0fdd2 commit 64b7d99

File tree

6 files changed

+30
-107
lines changed

6 files changed

+30
-107
lines changed

.github/workflows/code-coverage.yaml

-49
This file was deleted.

.github/workflows/laravel-test.yaml

+20-13
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,29 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
php: [ 7.2, 7.3, 7.4, 8.0 ]
16-
laravel: [ ^6.0, ^7.0, ^8.0 ]
17-
exclude:
15+
include:
1816
- php: 7.2
19-
laravel: ^8.0
20-
- php: 8.0
2117
laravel: ^6.0
18+
- php: 7.3
19+
laravel: ^6.0
20+
- php: 7.4
21+
laravel: ^6.0
22+
- php: 7.2
23+
laravel: ^7.0
24+
- php: 7.3
25+
laravel: ^7.0
26+
- php: 7.4
27+
laravel: ^7.0
2228
- php: 8.0
2329
laravel: ^7.0
30+
- php: 7.3
31+
laravel: ^8.0
32+
- php: 7.4
33+
laravel: ^8.0
34+
- php: 8.1
35+
laravel: ^8.0
36+
- php: 8.1
37+
laravel: ^9.0
2438

2539
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
2640

@@ -77,13 +91,6 @@ jobs:
7791
php artisan clear-compiled
7892
7993
- name: Run PHPT
80-
if: matrix.php != '8.0'
81-
run: |
82-
cd console-logg-package
83-
vendor/bin/phpunit tests/PhpTestCase/artisan-command-output.phpt --testdox
84-
85-
- name: Run PHPT
86-
if: matrix.php == '8.0'
8794
run: |
8895
cd console-logg-package
89-
vendor/bin/phpunit tests/PhpTestCase/artisan-command-output-php8.phpt --testdox
96+
vendor/bin/phpunit tests/PhpTestCase/ --testdox

README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,12 @@ php artisan my:command -vvv
7676

7777
### Compatibility
7878

79-
| Compatible | Laravel | PHP |
80-
|--------------------|-----------|-----------|
81-
| :heavy_check_mark: | 8.* | PHP >=7.1 + 8.* |
82-
| :heavy_check_mark: | 7.* | PHP >=7.1 |
83-
| :heavy_check_mark: | 6.* | PHP >=7.1 |
79+
| Compatible | Laravel |
80+
|--------------------|---------|
81+
| :heavy_check_mark: | 9.* |
82+
| :heavy_check_mark: | 8.* |
83+
| :heavy_check_mark: | 7.* |
84+
| :heavy_check_mark: | 6.* |
8485

8586
---
8687

codecov.yml

-40
This file was deleted.

tests/PhpTestCase/artisan-command-output-php8.phpt

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
artisan command log output without verbosity
3+
--SKIPIF--
4+
<?php if(version_compare(PHP_VERSION, '8.0.0', '<')) print 'skipped'; ?>
35
--FILE--
46
<?php declare(strict_types=1);
57
$_SERVER['argv'][0] = 'artisan';

tests/PhpTestCase/artisan-command-output.phpt

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
artisan command log output without verbosity
3+
--SKIPIF--
4+
<?php if(version_compare(PHP_VERSION, '8.0.0', '>=')) print 'skipped'; ?>
35
--FILE--
46
<?php declare(strict_types=1);
57
$_SERVER['argv'][0] = 'artisan';

0 commit comments

Comments
 (0)