use dynamic NC API version
This commit is contained in:
parent
12d2254cf3
commit
d31f8551c8
|
@ -47,6 +47,8 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
version: [min, max]
|
version: [min, max]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
env:
|
||||||
|
NC_API_TAG: 'dev-master'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -58,11 +60,13 @@ jobs:
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: ${{ env.PHP_VERSION }}
|
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
|
- name: Install Dependencies
|
||||||
run: composer install --prefer-dist
|
run: |
|
||||||
- name: Install latest Nextcloud API (dev-master)
|
composer require --dev christophwurst/nextcloud:$NC_API_TAG
|
||||||
if: matrix.version == 'max'
|
composer install --prefer-dist
|
||||||
run: composer require --dev christophwurst/nextcloud:dev-master
|
|
||||||
- name: Load problem matcher for php -l
|
- name: Load problem matcher for php -l
|
||||||
uses: korelstar/phplint-problem-matcher@master
|
uses: korelstar/phplint-problem-matcher@master
|
||||||
- name: lint PHP
|
- name: lint PHP
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"christophwurst/nextcloud": "^20.0",
|
"christophwurst/nextcloud": ">=20",
|
||||||
"nextcloud/coding-standard": "^0.5.0",
|
"nextcloud/coding-standard": "^0.5.0",
|
||||||
"squizlabs/php_codesniffer": "3.*",
|
"squizlabs/php_codesniffer": "3.*",
|
||||||
"phan/phan": "^4.0",
|
"phan/phan": "^4.0",
|
||||||
|
|
Loading…
Reference in New Issue