Skip to content
Snippets Groups Projects
Unverified Commit 1ab02b49 authored by Christoph Wurst's avatar Christoph Wurst Committed by GitHub
Browse files

Merge pull request #2321 from nextcloud/techdept/xmllint-action

Use Github action for xmllint
parents 17abb167 1250e4a7
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,19 @@ name: Lint
on: [push]
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-linters:
runs-on: ubuntu-latest
strategy:
......@@ -19,6 +32,7 @@ jobs:
coverage: none
- name: Lint
run: composer run lint
node-linters:
runs-on: ubuntu-latest
name: ESLint
......
......@@ -110,11 +110,6 @@ before_script:
- sh -c "if [ '$TEST_SUITE' = 'TEST-PHP' ]; then docker ps; fi"
script:
# Check info.xml schema validity
- wget https://apps.nextcloud.com/schema/apps/info.xsd
- xmllint appinfo/info.xml --schema info.xsd --noout
- rm info.xsd
# Run server's app code checker
- sh -c "if [ '$TEST_SUITE' = 'LINT-PHP' ]; then php ../../occ app:check-code mail; fi"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment