Browse Source

use dynamic NC API version

pull/688/head
korelstar 2 months ago
parent
commit
d31f8551c8
  1. 12
      .github/workflows/lint.yml
  2. 2
      composer.json

12
.github/workflows/lint.yml

@ -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

2
composer.json

@ -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",

Loading…
Cancel
Save