Skip to content

Add support for php 8.3 and nextcloud 29. Drop support for php 7.4 and nextcloud 25. #46

Add support for php 8.3 and nextcloud 29. Drop support for php 7.4 and nextcloud 25.

Add support for php 8.3 and nextcloud 29. Drop support for php 7.4 and nextcloud 25. #46

Workflow file for this run

name: Lint
on: pull_request
permissions:
contents: read
jobs:
xml-linters:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download schema
run: wget https://apps.nextcloud.com/schema/apps/info.xsd
- name: Lint info.xml
uses: ChristophWurst/xmllint-action@39155a91429af431d65fafc21fa52ba5c4f5cb71 # v1.1
with:
xml-file: ./appinfo/info.xml
xml-schema-file: ./info.xsd
php-linters:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3']
name: php${{ matrix.php-versions }} lint
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up php${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: none
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Lint
run: composer run lint
summary:
runs-on: ubuntu-latest
needs:
- xml-linters
- php-linters
if: always()
name: lint-summary
steps:
- name: XML linter status
run: if ${{ needs.xml-linters.result != 'success' && needs.xml-linters.result != 'skipped' }}; then exit 1; fi
- name: PHP linter status
run: if ${{ needs.php-linters.result != 'success' && needs.php-linters.result != 'skipped' }}; then exit 1; fi