Skip to content

Commit

Permalink
Merge pull request #54 from markwalet/laravel-11
Browse files Browse the repository at this point in the history
Add support for Laravel 11
  • Loading branch information
markwalet authored Mar 13, 2024
2 parents 58561ce + 76169e4 commit 1e097a5
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-php-8.3-illuminate-10.*-composer-${{ hashFiles('composer.json') }}
key: dependencies-php-8.3-illuminate-11.*-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
26 changes: 6 additions & 20 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,17 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [ 8.0, 8.1, 8.2, 8.3 ]
illuminate: [ 7.*, ~8.74, ^9.0, ^10.0 ]
php: [ 8.1, 8.2, 8.3 ]
illuminate: [ ^10.0, ^11.0 ]
stability: [ prefer-lowest, prefer-stable ]
include:
- illuminate: 7.*
testbench: 5.*
- illuminate: ~8.74
testbench: 6.*
- illuminate: ^9.0
testbench: 7.*
- illuminate: ^10.0
testbench: 8.*
- illuminate: ^11.0
testbench: 9.*
exclude:
- php: 8.1
illuminate: 7.*
- php: 8.0
illuminate: ^10.0
- php: 8.2
illuminate: 7.*
- php: 8.2
illuminate: ~8.74
- php: 8.3
illuminate: 7.*
- php: 8.3
illuminate: ~8.74
illuminate: ^11.0

name: P${{ matrix.php }} - I${{ matrix.illuminate }} - ${{ matrix.stability }}

Expand Down Expand Up @@ -68,4 +54,4 @@ jobs:
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/phpunit --verbose
run: vendor/bin/phpunit
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/.idea
vendor
/composer.lock
composer.lock
composer.phar
clover.json
clover.xml
.phpunit.result.cache
.phpunit.cache/
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

## [Unreleased](https://github.com/markwalet/laravel-changelog/compare/v1.9.0...master)

### Added
- Added support for Laravel 11

### Removed
- Removed support for PHP 8.0
- Removed support for Laravel 7
- Removed support for Laravel 8
- Removed support for Laravel 9

### Changed
- Upgraded to PHPUnit 10.

## [v1.9.0 (2023-12-02)](https://github.com/markwalet/laravel-changelog/compare/v1.8.0...v1.9.0)

### Added
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
],
"require": {
"php": "8.*",
"laravel/framework": "7.*|~8.74|^9.0|^10.0|^11.0",
"laravel/framework": "^10.0|^11.0",
"markwalet/laravel-git-state": "~1.0",
"ext-simplexml": "*",
"ext-dom": "*"
},
"require-dev": {
"phpunit/phpunit": "~9.3",
"phpunit/phpunit": "^10.5",
"mockery/mockery": "~1.4",
"orchestra/testbench": "5.*|6.*|7.*|8.*"
"orchestra/testbench": "8.*|9.*"
},
"autoload": {
"psr-4": {
Expand Down
34 changes: 19 additions & 15 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="vendor/autoload.php"
backupGlobals="false"
colors="true"
verbose="true"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
<exclude>
<directory suffix=".php">./src/Exceptions/*</directory>
</exclude>
</coverage>
<testsuites>
<testsuite name="Changelog Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
processIsolation="false"
stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false">
<testsuites>
<testsuite name="Changelog Test Suite">
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
<exclude>
<directory suffix=".php">./src/Exceptions/*</directory>
</exclude>
</source>
</phpunit>

0 comments on commit 1e097a5

Please sign in to comment.