Skip to content

Commit

Permalink
Merge pull request #493 from jakzal/feat/8.3
Browse files Browse the repository at this point in the history
PHP 8.3 builds
  • Loading branch information
jakzal authored Nov 29, 2023
2 parents 3d1a01b + ba2eee2 commit fd6cdda
Show file tree
Hide file tree
Showing 7 changed files with 91 additions and 104 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
name: Build and test
strategy:
matrix:
php: [8.1, 8.2]
php: [8.1, 8.2, 8.3]
deps: [high]
include:
- php: 8.1
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
needs: tests
strategy:
matrix:
php: [8.1, 8.2]
php: [8.1, 8.2, 8.3]

steps:
- uses: actions/checkout@v3
Expand Down
162 changes: 81 additions & 81 deletions README.md

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions bin/devkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,19 @@ protected function execute(InputInterface $input, OutputInterface $output)
$readmePath = $input->getOption('readme');
$tools = $this->loadTools($jsonPath);

$toolsList = '| Name | Description | PHP 8.1 | PHP 8.2 |' . PHP_EOL;
$toolsList .= '| :--- | :---------- | :------ | :------ |' . PHP_EOL;
$toolsList = '| Name | Description | PHP 8.1 | PHP 8.2 | PHP 8.3 |' . PHP_EOL;
$toolsList .= '| :--- | :---------- | :------ | :------ | :------ |' . PHP_EOL;
$toolsList .= $tools->sort(function (Tool $left, Tool $right) {
return strcasecmp($left->name(), $right->name());
})->reduce('', function ($acc, Tool $tool) {

return $acc . sprintf('| %s | [%s](%s) | %s | %s |',
return $acc . sprintf('| %s | [%s](%s) | %s | %s | %s |',
$tool->name(),
$tool->summary(),
$tool->website(),
in_array('exclude-php:8.1', $tool->tags(), true) ? '❌' : '✅',
in_array('exclude-php:8.2', $tool->tags(), true) ? '❌' : '✅'
in_array('exclude-php:8.2', $tool->tags(), true) ? '❌' : '✅',
in_array('exclude-php:8.3', $tool->tags(), true) ? '❌' : '✅'
) . PHP_EOL;
});

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Helps to discover and install tools",
"type": "project",
"require": {
"php": "~8.1.0 || ~8.2.0",
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"symfony/console": "^5.4.31 || ^6.3",
"psr/container": "^2.0"
},
Expand Down
14 changes: 0 additions & 14 deletions resources/architecture.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,6 @@
},
"test": "phparkitect --version",
"tags": ["architecture"]
},
{
"name": "phpda",
"summary": "Generates dependency graphs",
"website": "https://mamuz.github.io/PhpDependencyAnalysis/",
"command": {
"composer-bin-plugin": {
"package": "mamuz/php-dependency-analysis",
"namespace": "phpda",
"links": {"%target-dir%/phpda": "phpda"}
}
},
"test": "phpda list",
"tags": ["exclude-php:8.2", "exclude-php:8.1", "featured", "architecture"]
}
]
}
2 changes: 1 addition & 1 deletion resources/checkstyle.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
}
},
"test": "twigcs --help",
"tags": ["checkstyle"]
"tags": ["exclude-php:8.3", "checkstyle"]
}
]
}
2 changes: 1 addition & 1 deletion resources/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
}
},
"test": "phpspec --version",
"tags": ["exclude-php:8.2", "featured", "test"]
"tags": ["exclude-php:8.3", "exclude-php:8.2", "featured", "test"]
},
{
"name": "phpunit",
Expand Down

0 comments on commit fd6cdda

Please sign in to comment.