ci: change version requirements
This commit is contained in:
Родитель
ec46bfc9d7
Коммит
43786de427
|
@ -23,7 +23,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
php-versions: [7.2, 7.3, 7.4, 8.0]
|
||||
php-versions: [7.3, 7.4, 8.0]
|
||||
name: php${{ matrix.php-versions }} lint
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
|
@ -12,13 +12,8 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
php-versions: ['7.3', '7.4']
|
||||
nextcloud-versions: ['stable20', 'stable21']
|
||||
include:
|
||||
- php-versions: '7.2'
|
||||
nextcloud-versions: 'stable20'
|
||||
- php-versions: '8.0'
|
||||
nextcloud-versions: 'stable21'
|
||||
php-versions: ['7.3', '7.4', '8.0']
|
||||
nextcloud-versions: ['stable22', 'stable23']
|
||||
name: php${{ matrix.php-versions }} on ${{ matrix.nextcloud-versions }} unit tests
|
||||
env:
|
||||
CI: true
|
||||
|
@ -41,14 +36,6 @@ jobs:
|
|||
- name: Remove OCP
|
||||
working-directory: nextcloud/apps/ojsxc
|
||||
run: composer remove --no-update --dev christophwurst/nextcloud
|
||||
- name: Fix php-parser on stable20 incompatibility with phpunit 9.3+
|
||||
if: ${{ matrix.nextcloud-versions == 'stable20' }}
|
||||
working-directory: nextcloud/3rdparty
|
||||
run: composer require nikic/php-parser:4.10
|
||||
- name: Downgrade phpunit for php7.2
|
||||
if: ${{ matrix.php-versions == '7.2' }}
|
||||
working-directory: nextcloud/apps/ojsxc
|
||||
run: composer update phpunit/phpunit -W
|
||||
- name: Install dependencies
|
||||
working-directory: nextcloud/apps/ojsxc
|
||||
run: composer install
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"require-dev": {
|
||||
"phpunit/phpunit": "^8.5 || ^9.3",
|
||||
"friendsofphp/php-cs-fixer": "^2.14",
|
||||
"christophwurst/nextcloud": "dev-stable20 || dev-stable21",
|
||||
"christophwurst/nextcloud": "dev-stable22 || dev-stable23",
|
||||
"vimeo/psalm": "^4.5"
|
||||
},
|
||||
"scripts": {
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче