Skip to content

Commit a9e0b23

Browse files
authored
Merge pull request #343 from jeremykendall/develop
Prepare 6.2 release
2 parents bc84e24 + 84d486a commit a9e0b23

34 files changed

+327
-604
lines changed

.gitattributes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
/.gitattributes export-ignore
55
/.github export-ignore
66
/.gitignore export-ignore
7-
/.php_cs export-ignore
7+
/.php-cs-fixer.php export-ignore
88
/phpstan.neon export-ignore
99
/phpunit.xml.dist export-ignore
1010
/psalm.xml export-ignore
11+
/test_data/ export-ignore
1112
/CHANGELOG.md export-ignore
1213
/UPGRADING.md export-ignore
1314
/README.md export-ignore

.github/workflows/build.yaml

Lines changed: 48 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,60 @@
11
---
2-
name: Build
2+
name: build
33
on:
44
push: ~
55
pull_request: ~
66

77
jobs:
8-
phpunit:
9-
name: PHPUnit tests on ${{ matrix.php }} ${{ matrix.composer-flags }}
10-
runs-on: ubuntu-latest
8+
linux_tests:
9+
name: PHP on ${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.composer-flags }}
10+
runs-on: ubuntu-20.04
1111
strategy:
1212
matrix:
13-
php: [ '7.4', '8.0', '8.1' ]
14-
composer-flags: [ '' ]
15-
phpunit-flags: [ '--coverage-text' ]
13+
php: ['8.1']
14+
stability: [prefer-lowest, prefer-stable]
15+
include:
16+
- php: '8.2'
17+
flags: "--ignore-platform-req=php"
18+
phpunit-flags: '--no-coverage'
19+
stability: prefer-stable
1620
steps:
17-
- uses: actions/checkout@v2
18-
- uses: shivammathur/setup-php@v2
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
1926
with:
2027
php-version: ${{ matrix.php }}
21-
coverage: pcov
28+
coverage: xdebug
2229
tools: composer:v2
23-
- run: composer update --no-progress ${{ matrix.composer-flags }}
24-
- run: composer phpunit
25-
- run: composer phpstan
26-
if: ${{ matrix.php == '8.1' }}
27-
- run: composer phpcs
28-
if: ${{ matrix.php == '8.1' }}
30+
- name: Check PHP Version
31+
run: php -v
32+
33+
- name: Validate composer files
34+
run: composer validate --strict
35+
36+
- name: Get Composer Cache Directory
37+
id: composer-cache
38+
run: |
39+
echo "::set-output name=dir::$(composer config cache-files-dir)"
40+
- uses: actions/cache@v2
41+
with:
42+
path: ${{ steps.composer-cache.outputs.dir }}
43+
key: ${{ runner.os }}-composer-${{ matrix.stability }}-${{ matrix.flags }}-${{ hashFiles('**/composer.lock') }}
44+
restore-keys: |
45+
${{ runner.os }}-composer-${{ matrix.stability }}-${{ matrix.flags }}-
46+
${{ runner.os }}-composer-
47+
48+
- name: Install dependencies
49+
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress ${{ matrix.flags }}
50+
51+
- name: Run Unit tests with coverage
52+
run: composer phpunit -- ${{ matrix.phpunit-flags }}
53+
54+
- name: Run static analysis
55+
run: composer phpstan
56+
if: ${{ matrix.php == '8.1' && matrix.stability == 'prefer-stable'}}
57+
58+
- name: Run Coding style rules
59+
run: composer phpcs:fix
60+
if: ${{ matrix.php == '8.1' && matrix.stability == 'prefer-stable'}}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ data
22
vendor
33
docs
44
build
5+
pdp
56
.idea
67
.php_cs.cache
78
.php-cs-fixer.cache

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

33
All Notable changes to `PHP Domain Parser` starting from the **5.x** series will be documented in this file
44

5+
## 6.2.0 - 2022-10-30
6+
7+
### Added
8+
9+
- None
10+
11+
### Fixed
12+
13+
- None
14+
15+
### Deprecated
16+
17+
- None
18+
19+
### Removed
20+
21+
- PHP7 and PHP8.0 support
22+
523
## 6.1.2 - 2022-09-29
624

725
### Added

composer.json

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
"authors": [
1111
{
1212
"name": "Jeremy Kendall",
13-
"homepage": "http://about.me/jeremykendall",
13+
"homepage": "https://about.me/jeremykendall",
1414
"role": "Developer"
1515
},
1616
{
1717
"name": "Ignace Nyamagana Butera",
18-
"homepage": "http://nyamsprod.com",
18+
"homepage": "https://nyamsprod.com",
1919
"role": "Developer"
2020
},
2121
{
@@ -40,22 +40,22 @@
4040
"psl"
4141
],
4242
"require": {
43-
"php": "^7.4 || ^8.0",
43+
"php": "^8.1",
4444
"ext-filter": "*",
4545
"ext-intl": "*",
4646
"ext-json": "*"
4747
},
4848
"require-dev": {
49-
"friendsofphp/php-cs-fixer": "^v3.5.0",
50-
"guzzlehttp/guzzle": "^7.0",
51-
"guzzlehttp/psr7": "^1.6||^2.0",
52-
"phpstan/phpstan": "^1.4.6.",
53-
"phpstan/phpstan-phpunit": "^1.0.0",
54-
"phpstan/phpstan-strict-rules": "^1.1.0",
55-
"phpunit/phpunit": "^9.5.13",
56-
"psr/http-factory": "^1.0",
57-
"psr/simple-cache": "^1.0",
58-
"symfony/cache": "^v5.0 || ^v6.0"
49+
"friendsofphp/php-cs-fixer": "^v3.8.0",
50+
"guzzlehttp/guzzle": "^7.5",
51+
"guzzlehttp/psr7": "^1.6 || ^2.4.3",
52+
"phpstan/phpstan": "^1.9",
53+
"phpstan/phpstan-phpunit": "^1.2.2",
54+
"phpstan/phpstan-strict-rules": "^1.4.4",
55+
"phpunit/phpunit": "^9.5.26",
56+
"psr/http-factory": "^1.0.1",
57+
"psr/simple-cache": "^1.0.1",
58+
"symfony/cache": "^v5.0.0 || ^v6.0.0"
5959
},
6060
"suggest": {
6161
"psr/http-client-implementation": "To use the storage functionnality which depends on PSR-18",
@@ -72,8 +72,7 @@
7272
"phpcs": "php-cs-fixer fix -vvv --diff --dry-run --allow-risky=yes --ansi",
7373
"phpcs:fix": "php-cs-fixer fix -vvv --allow-risky=yes --ansi",
7474
"phpstan": "phpstan analyse -l max -c phpstan.neon src --memory-limit=256M --ansi",
75-
"psalm": "psalm --show-info=true",
76-
"phpunit": "phpunit --coverage-text",
75+
"phpunit": "XDEBUG_MODE=coverage phpunit --coverage-text",
7776
"test": [
7877
"@phpunit",
7978
"@phpstan",

0 commit comments

Comments
 (0)