Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support PHP 8.3 #470

Merged
merged 16 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 5 additions & 51 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
strategy:
matrix:
dependencies:
- "locked"
norberttech marked this conversation as resolved.
Show resolved Hide resolved
- "lowest"
- "highest"
php-version:
- "8.1"
- "8.2"
- "8.3"
operating-system:
- "ubuntu-latest"

Expand All @@ -36,20 +36,6 @@ jobs:
ini-values: memory_limit=-1
tools: composer:v2

- name: "Get Composer Cache Directory"
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: "Cache Composer dependencies"
uses: "actions/cache@v2"
with:
path: |
${{ steps.composer-cache.outputs.dir }}
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-${{ hashFiles('**/composer.lock') }}"
restore-keys: |
php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-

- name: "Install lowest dependencies"
if: ${{ matrix.dependencies == 'lowest' }}
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
Expand All @@ -58,10 +44,6 @@ jobs:
if: ${{ matrix.dependencies == 'highest' }}
run: "composer update --no-interaction --no-progress --no-suggest"

- name: "Install locked dependencies"
if: ${{ matrix.dependencies == 'locked' }}
run: "composer install --no-interaction --no-progress --no-suggest"

- name: "Tests"
run: "composer test"

Expand All @@ -80,22 +62,8 @@ jobs:
ini-values: memory_limit=-1
tools: composer:v2

- name: "Get Composer Cache Directory"
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: "Cache Composer dependencies"
uses: "actions/cache@v2"
with:
path: |
${{ steps.composer-cache.outputs.dir }}
key: "php-8.1-locked-composer-${{ hashFiles('**/composer.lock') }}"
restore-keys: |
php-8.1-locked-composer-

- name: "Install locked dependencies"
run: "composer install --no-interaction --no-progress --no-suggest"
- name: "Install dependencies"
run: "composer update --no-interaction --no-progress --no-suggest"

- name: "Static Analyze"
run: "composer static:analyze"
Expand All @@ -115,22 +83,8 @@ jobs:
php-version: "8.1"
ini-values: memory_limit=-1

- name: "Get Composer Cache Directory"
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: "Cache Composer dependencies"
uses: "actions/cache@v2"
with:
path: |
${{ steps.composer-cache.outputs.dir }}
key: "php-8.1-locked-composer-${{ hashFiles('**/composer.lock') }}"
restore-keys: |
php-8.1-locked-composer-

- name: "Install locked dependencies"
run: "composer install --no-interaction --no-progress --no-suggest"
- name: "Install dependencies"
run: "composer update --no-interaction --no-progress --no-suggest"

- name: "Mutation Tests"
run: "composer test:mutation"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ var/
.DS_Store
.idea
.phpunit.cache/
composer.lock
9 changes: 3 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],
"require": {
"php": "~8.1 || ~8.2",
"php": "~8.1 || ~8.2 || ~8.3",
"ext-filter": "*",
"ext-json": "*",
"ext-simplexml": "*",
Expand All @@ -25,13 +25,10 @@
},
"require-dev": {
"ext-pcov": "*",
"phpunit/phpunit": "^8.5.14|^9.0|^10.0",
"phpunit/phpunit": "^10.4",
"openlss/lib-array2xml": "^1.0",
"symfony/expression-language": "^2.3|^3.0|^4.0|^5.0|^6.0"
},
"conflict": {
"phpunit/phpunit": "<8.0, >=11.0"
},
"suggest": {
"openlss/lib-array2xml": "In order ot use Coduo\\PHPMatcher\\Matcher\\XmlMatcher",
"symfony/expression-language" : "In order to use Coduo\\PHPMatcher\\Matcher\\ExpressionMatcher"
Expand Down Expand Up @@ -64,7 +61,7 @@
"tools\/vendor\/bin\/php-cs-fixer fix --using-cache=no"
],
"test" : [
"vendor\/bin\/phpunit"
"vendor\/bin\/phpunit --coverage-html var/phpunit/coverage/html --coverage-filter src"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The coverage config has been inlined here and removed from the XML configuration since Infection does not recognize it properly.

],
"test:mutation": [
"Composer\\Config::disableProcessTimeout",
Expand Down
Loading
Loading