2022-10-19 16:51:16 +00:00
|
|
|
---
|
|
|
|
name: Lint
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
xml-linters:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@master
|
|
|
|
- name: Download schema
|
|
|
|
run: wget https://apps.nextcloud.com/schema/apps/info.xsd
|
|
|
|
- name: Lint info.xml
|
|
|
|
uses: ChristophWurst/xmllint-action@v1
|
|
|
|
with:
|
|
|
|
xml-file: ./appinfo/info.xml
|
|
|
|
xml-schema-file: ./info.xsd
|
|
|
|
php-cs-fixer:
|
|
|
|
name: PHP-CS-Fixer
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: PHP-CS-Fixer
|
|
|
|
uses: docker://oskarstark/php-cs-fixer-ga
|
|
|
|
with:
|
2022-10-29 23:11:29 +00:00
|
|
|
args: --dry-run --diff lib
|