Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,32 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.3', '7.4', '8.0']
name: php${{ matrix.php-versions }} lint
php-version: ['7.4', '8.0']
ocp-version: ['^v21.0.0', '^v22.0.0', '^v23.0.0', 'dev-master']
include:
- php-version: '7.3'
ocp-version: '^v21.0.0'
- php-version: '7.3'
ocp-version: '^v22.0.0'
- php-version: '7.3'
ocp-version: '^v23.0.0'
- php-version: '8.1'
ocp-version: 'dev-master'
name: php${{ matrix.php-version }}-ocp-${{ matrix.ocp-version }} lint
steps:
- name: Checkout
uses: actions/checkout@master
- name: Set up php${{ matrix.php-versons }}
- name: Set up php${{ matrix.php-version }}
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
php-version: ${{ matrix.php-version }}
coverage: none
- name: Install dependencies
run: composer i
run: composer i --ignore-platform-reqs
- name: Install OCP package
run: |
rm composer.lock
composer require --dev christophwurst/nextcloud:${{ matrix.ocp-version }}
- name: Lint
run: composer run lint

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"require-dev": {
"christophwurst/nextcloud": "dev-master",
"christophwurst/nextcloud": "^v20.0.0",
"php-parallel-lint/php-parallel-lint": "^1.0",
"phpunit/phpunit": "^8",
"nextcloud/coding-standard": "^0.4.0"
Expand Down