use dynamic NC API version

This commit is contained in:
korelstar 2021-03-01 14:35:46 +01:00
parent 12d2254cf3
commit d31f8551c8
2 changed files with 9 additions and 5 deletions

View File

@ -47,6 +47,8 @@ jobs:
matrix:
version: [min, max]
fail-fast: false
env:
NC_API_TAG: 'dev-master'
steps:
- name: Checkout
uses: actions/checkout@v2
@ -58,11 +60,13 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.PHP_VERSION }}
- name: Determine minimum Nextcloud API version
if: matrix.version == 'min'
run: echo "NC_API_TAG=$(php tests/nextcloud-version.php --appinfo)" >> $GITHUB_ENV
- name: Install Dependencies
run: composer install --prefer-dist
- name: Install latest Nextcloud API (dev-master)
if: matrix.version == 'max'
run: composer require --dev christophwurst/nextcloud:dev-master
run: |
composer require --dev christophwurst/nextcloud:$NC_API_TAG
composer install --prefer-dist
- name: Load problem matcher for php -l
uses: korelstar/phplint-problem-matcher@master
- name: lint PHP

View File

@ -1,6 +1,6 @@
{
"require-dev": {
"christophwurst/nextcloud": "^20.0",
"christophwurst/nextcloud": ">=20",
"nextcloud/coding-standard": "^0.5.0",
"squizlabs/php_codesniffer": "3.*",
"phan/phan": "^4.0",