Skip to content

Commit

Permalink
[TASK] Enable dependabot for all supported branches: Use PHP platform
Browse files Browse the repository at this point in the history
Dependabot requires `config.platform.php` in composer.json to work correctly.

This will avoid troubles like:

```
Problem 1
    - Root composer.json requires solarium/solarium 6.3.5 -> satisfiable by solarium/solarium[6.3.5].
    - solarium/solarium 6.3.5 requires php ^8.0 -> your php version (7.4.33) does not satisfy that requirement.

    - solarium/solarium 6.3.5 requires php ^8.0 -> your php version (7.4.33) does not satisfy that requirement.
```

Relates: #3168
  • Loading branch information
dkd-kaehm committed Jul 29, 2024
1 parent 0be46d5 commit 16bf8c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ updates:
directory: "/Docker/SolrServer"
schedule:
interval: "daily"

target-branch: "release-11.6.x"
commit-message:
prefix: "[TASK] 11.6.x-dev "
Expand Down
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
"minimum-stability": "stable",
"prefer-stable": true,
"config": {
"platform": {
"php": "8.2"
},
"allow-plugins": true,
"vendor-dir": ".Build/vendor",
"bin-dir": ".Build/bin",
Expand Down Expand Up @@ -109,7 +112,8 @@
"tests:restore-git": "echo \"Retore composer.json to initial state:\" && git checkout composer.json",
"tests:env": [
"if [ -z ${TYPO3_VERSION+x} ]; then >&2 echo \"Can not proceed, because env var TYPO3_VERSION is not set\"; exit 1; else echo \"Setup test environment for TYPO3 ${TYPO3_VERSION}\"; fi",
"if echo $TYPO3_VERSION | grep -q \"dev\"; then $COMPOSER_BINARY config minimum-stability dev; fi"
"if echo $TYPO3_VERSION | grep -q \"dev\"; then $COMPOSER_BINARY config minimum-stability dev; fi",
"@composer config --unset platform"
],
"tests:setup": [
"@tests:env",
Expand Down

0 comments on commit 16bf8c5

Please sign in to comment.