Skip to content

Commit

Permalink
CI: Composer - move prefer-stable to file config (#7406)
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Nov 2, 2023
1 parent f197f8d commit 506e19b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- operating-system: 'ubuntu-20.04'
php-version: '7.4'
job-description: 'with lowest deps'
composer-flags: '--prefer-stable --prefer-lowest' # should be checked on the lowest supported PHP version
composer-flags: '--prefer-lowest' # should be checked on the lowest supported PHP version

- operating-system: 'ubuntu-20.04'
php-version: '7.4'
Expand Down Expand Up @@ -68,12 +68,12 @@ jobs:
- operating-system: 'windows-latest'
php-version: '8.2'
job-description: 'on Windows'
FAST_LINT_TEST_CASES: 1
FAST_LINT_TEST_CASES: 1 # we need full syntax check on one job at least, no need to do it on additional systems

- operating-system: 'macos-latest'
php-version: '8.2'
job-description: 'on macOS'
FAST_LINT_TEST_CASES: 1
FAST_LINT_TEST_CASES: 1 # we need full syntax check on one job at least, no need to do it on additional systems

name: PHP ${{ matrix.php-version }} ${{ matrix.job-description }}

Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"ergebnis/composer-normalize": true,
"infection/extension-installer": false
},
"prefer-stable": true,
"sort-packages": true
},
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions dev-tools/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"mi-schi/phpmd-extension": "^4.3.0",
"phpmd/phpmd": "^2.14.1",
"phpstan/extension-installer": "^1.3.1",
"phpstan/phpstan": "^1.10.39",
"phpstan/phpstan": "^1.10.40",
"phpstan/phpstan-phpunit": "^1.3.15",
"phpstan/phpstan-strict-rules": "^1.5.1"
"phpstan/phpstan-strict-rules": "^1.5.2"
},
"config": {
"allow-plugins": {
Expand All @@ -21,6 +21,7 @@
"platform": {
"php": "8.2"
},
"prefer-stable": true,
"sort-packages": true
}
}
26 changes: 13 additions & 13 deletions dev-tools/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 506e19b

Please sign in to comment.