Skip to content

Commit 4f523e9

Browse files
authored
chore: 🤖 Bump version (#6)
1 parent 0f5fb30 commit 4f523e9

File tree

9 files changed

+245
-240
lines changed

9 files changed

+245
-240
lines changed

‎.github/workflows/test.yml‎

Lines changed: 6 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -8,65 +8,30 @@ jobs:
88

99
strategy:
1010
matrix:
11+
php: [8.2, 8.3, 8.4]
1112
lib:
12-
- { php: 5.6, orm: ^2.4.5 }
13-
- { php: '7.0', orm: ^2.4.5 }
14-
- { php: 7.1, orm: ^2.4.5, cache: ^1.1 }
15-
- { php: 7.2, orm: ^2.4.5, cache: ^1.11 }
16-
- { php: 7.3, orm: ^2.6.3, cache: ^1.11 }
17-
- { php: 7.4, orm: ^2.6.4, cache: ^1.11 }
18-
- { php: '8.0', orm: ^2.8.0, cache: ^1.11 }
19-
- { php: 8.1, orm: ^2.8.0, cache: ^1.11, lexer: ^1.2.1 }
20-
- { php: 8.2, orm: ^2.8.0, cache: ^1.11, lexer: ^1.2.1 }
21-
flags: [--prefer-lowest, '']
13+
- doctrine: ^2.20
14+
- doctrine: ^2.21.x-dev
2215

2316
steps:
2417
- uses: actions/checkout@v3
2518

2619
- name: Setup PHP
2720
uses: shivammathur/setup-php@v2
2821
with:
29-
php-version: ${{ matrix.lib.php }}
22+
php-version: ${{ matrix.php }}
3023
coverage: xdebug
3124

32-
- name: Adjust package versions
33-
run: |
34-
set -x
35-
composer require phpunit/phpunit --dev --no-update
36-
composer require doctrine/orm:$ORM_VERSION --no-update $FLAGS
37-
composer remove doctrine/cache --dev --no-update
38-
if [ ! -z $CACHE_VERSION ]; then
39-
composer require doctrine/cache:$CACHE_VERSION --dev --no-update $FLAGS
40-
fi
41-
if [ ! -z $LEXER_VERSION ]; then
42-
composer require doctrine/lexer:$LEXER_VERSION --dev --no-update $FLAGS
43-
fi
44-
composer update $FLAGS
45-
if php -r 'exit((int)!version_compare($argv[1], "2.10.0", ">="));' "$(composer show | grep doctrine/orm | awk '{print $2}')"; then
46-
composer require doctrine/annotations --dev $FLAGS
47-
fi
48-
env:
49-
ORM_VERSION: ${{ matrix.lib.orm }}
50-
CACHE_VERSION: ${{ matrix.lib.cache }}
51-
LEXER_VERSION: ${{ matrix.lib.lexer }}
52-
FLAGS: ${{ matrix.flags }}
53-
54-
- name: Display package versions
55-
id: package-versions
56-
run: |
57-
composer show | grep -E '^(doctrine/|lampager/)'
58-
echo 'name=doctrine::'$(composer show | grep -E '^(doctrine/orm)' | awk '{print $2}') > "$GITHUB_OUTPUT"
59-
25+
- run: composer require "doctrine/orm:${{ matrix.lib.doctrine }}" --dev
6026
- run: mkdir -p build/logs
61-
- run: 'vendor/bin/phpunit --migrate-configuration || :'
6227
- run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
6328

6429
- name: Upload Coverage
6530
uses: nick-invision/retry@v2
6631
env:
6732
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6833
COVERALLS_PARALLEL: 'true'
69-
COVERALLS_FLAG_NAME: 'php:${{ matrix.lib.php }} doctrine:${{ steps.package-versions.outputs.doctrine }}'
34+
COVERALLS_FLAG_NAME: 'laravel:${{ matrix.lib.laravel }}'
7035
with:
7136
timeout_minutes: 1
7237
max_attempts: 3

‎.idea/workspace.xml‎

Lines changed: 143 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.scrutinizer.yml‎

Lines changed: 0 additions & 33 deletions
This file was deleted.

‎README.md‎

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<p align="center">
55
<a href="https://github.com/lampager/lampager-doctrine2/actions"><img src="https://github.com/lampager/lampager-doctrine2/actions/workflows/test.yml/badge.svg?branch=master" alt="Build Status"></a>
66
<a href="https://coveralls.io/github/lampager/lampager-doctrine2?branch=master"><img src="https://coveralls.io/repos/github/lampager/lampager-doctrine2/badge.svg?branch=master" alt="Coverage Status"></a>
7-
<a href="https://scrutinizer-ci.com/g/lampager/lampager-doctrine2/?branch=master"><img src="https://scrutinizer-ci.com/g/lampager/lampager-doctrine2/badges/quality-score.png?b=master" alt="Scrutinizer Code Quality"></a>
87
</p>
98

109
# Lampager for Doctrine 2
@@ -13,18 +12,12 @@ Rapid pagination for Doctrine 2
1312

1413
## Requirements
1514

16-
- PHP: `^5.6 || ^7.0 || ^8.0`
17-
- [doctrine/orm](https://github.com/doctrine/orm): `^2.4.5`
18-
- [lampager/lampager](https://github.com/lampager/lampager): `^0.4`
15+
- PHP: `^8.2`
16+
- [doctrine/orm](https://github.com/doctrine/orm): `^2.20`
17+
- [lampager/lampager](https://github.com/lampager/lampager): `^0.5`
1918

20-
### Matrix
21-
22-
| PHP | [doctrine/orm](https://github.com/doctrine/orm) | [lampager/lampager](https://github.com/lampager/lampager) |
23-
|:---|:---|:---|
24-
| `>=8.0` | `^2.8.0` | `^0.4` |
25-
| `>=7.4` `<8.0` | `^2.6.4` | `^0.4` |
26-
| `>=7.3` `<7.4` | `^2.6.3` | `^0.4` |
27-
| `>=5.6` `<7.3` | `^2.4.5` | `^0.4` |
19+
> [!NOTE]
20+
> Older versions have outdated dependency requirements. If you cannot prepare the latest environment, please refer to past releases.
2821
2922
## Installing
3023

‎composer.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
}
2222
},
2323
"require": {
24-
"php": "^5.6 || ^7.0 || ^8.0",
25-
"lampager/lampager": "^0.4",
26-
"doctrine/orm": "^2.4.5"
24+
"php": "^8.2",
25+
"lampager/lampager": "^0.5",
26+
"doctrine/orm": "^2.20"
2727
},
2828
"require-dev": {
2929
"ext-json": "*",
30-
"phpunit/phpunit": ">=5.7",
30+
"phpunit/phpunit": ">=11.0",
3131
"nilportugues/sql-query-formatter": "^1.2.2",
32-
"doctrine/cache": "^1.11"
32+
"symfony/cache": "^7.2"
3333
},
3434
"minimum-stability": "dev",
3535
"prefer-stable": true

‎phpunit.xml‎

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit backupGlobals="false"
33
bootstrap="vendor/autoload.php"
4-
backupStaticAttributes="false"
54
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
95
processIsolation="false"
106
stopOnFailure="false"
11-
>
7+
cacheDirectory=".phpunit.cache"
8+
backupStaticProperties="false">
9+
10+
<source>
11+
<include>
12+
<directory>./src</directory>
13+
</include>
14+
</source>
15+
16+
<coverage/>
17+
1218
<testsuites>
1319
<testsuite name="Package Test Suite">
14-
<directory suffix="Test.php">./tests/</directory>
20+
<directory suffix="Test.php">./tests</directory>
1521
</testsuite>
1622
</testsuites>
17-
<filter>
18-
<whitelist processUncoveredFilesFromWhitelist="true">
19-
<directory suffix=".php">src</directory>
20-
</whitelist>
21-
</filter>
2223
</phpunit>

0 commit comments

Comments
 (0)