Skip to content

Commit

Permalink
Merge pull request #20 from comes/upgrade-php
Browse files Browse the repository at this point in the history
upgrade php
  • Loading branch information
bilfeldt authored May 1, 2023
2 parents c6c2532 + 96be38c commit f9fd23e
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 72 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,15 @@ jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.1, 8.0, 7.4]
laravel: [9.*, 8.*]
php: [8.2]
laravel: [10.*]
dependency-version: [prefer-stable]
include:
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: 6.*
exclude:
- laravel: 7.*
php: 8.1
- laravel: 9.*
php: 7.4
- laravel: 10.*
testbench: 8.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}

Expand All @@ -51,4 +44,4 @@ jobs:
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/pest
run: composer run-script test
23 changes: 19 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,34 @@

All notable changes to `laravel-request-logger` will be documented in this file.

## v1.1.0 - 2022-01-28
## Upgrade guides

### 1.* => 2.*

No breaking changes. The only changes are to the development dependencies used for testing and then the minimum Laravel and PHP requirements.

## Changes

### 2.0.0 - 2023-05-01

- Add support for PHP 8.2
- Minimum PHP requirement 8.2
- Add support for Laravel 10.*
- Minimum Laravel requirement 10.0

### v1.1.0 - 2022-01-28

- Add Laravel 9 support
- Add PHP 8.1 support

## v1.0.2 - 2022-01-11
### v1.0.2 - 2022-01-11

- Exclude the parameter api_token per default from all logs (added to config) #17

## v1.0.1 - 2021-11-15
### v1.0.1 - 2021-11-15

- Fix issue when route is undefined: By @woenel in #15

## 1.0.0 - 2021-11-12
### 1.0.0 - 2021-11-12

- initial release
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

Zero configuration logging of Requests and Responses to database or custom drivers in Laravel applications - no more issues debugging customer support requests.

| Version | Laravel | PHP |
|---------|-------------|-------------------------|
| 1.* | 8.* \| 9.* | 7.4.* \| 8.0.* \| 8.1.* |
| 2.* | 10.* | 8.2.* |

## Installation

You can install the package via composer:
Expand Down
22 changes: 7 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,16 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "~8.2.0",
"spatie/laravel-package-tools": "^1.4.3",
"illuminate/contracts": "^8.50 || ^9.0",
"illuminate/contracts": "^10.0",
"ext-json": "*"
},
"require-dev": {
"nunomaduro/collision": "^5.3 || ^6.0",
"nunomaduro/larastan": "^1.0 || ^2.0",
"orchestra/testbench": "^6.15 || ^7.0",
"pestphp/pest": "^1.18",
"pestphp/pest-plugin-laravel": "^1.1",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpunit/phpunit": "^9.3",
"spatie/laravel-ray": "^1.23"
"nunomaduro/collision": "^7.2",
"orchestra/testbench": "^8.0",
"phpunit/phpunit": "^10.0",
"spatie/laravel-ray": "^1.32"
},
"autoload": {
"psr-4": {
Expand All @@ -45,12 +39,10 @@
}
},
"scripts": {
"phpstan": "vendor/bin/phpstan analyse",
"test": "./vendor/bin/testbench package:test --parallel --no-coverage",
"test": "./vendor/bin/testbench package:test --no-coverage",
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"
},
"config": {
"sort-packages": true
},
"extra": {
"laravel": {
Expand Down
69 changes: 34 additions & 35 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,39 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
executionOrder="random"
failOnWarning="true"
failOnRisky="true"
failOnEmptyTestSuite="true"
beStrictAboutOutputDuringTests="true"
verbose="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd"
backupGlobals="false"
bootstrap="vendor/autoload.php"
colors="true"
processIsolation="false"
stopOnFailure="false"
executionOrder="random"
failOnWarning="true"
failOnRisky="true"
failOnEmptyTestSuite="true"
beStrictAboutOutputDuringTests="true"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false"
>
<testsuites>
<testsuite name="Bilfeldt Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<testsuites>
<testsuite name="Bilfeldt Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>
5 changes: 0 additions & 5 deletions tests/Pest.php

This file was deleted.

0 comments on commit f9fd23e

Please sign in to comment.