2020-01-30 08:32:31 +00:00
|
|
|
name: Lint
|
2020-02-18 19:05:19 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- stable*
|
2020-01-30 08:32:31 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
php-linters:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-02-09 21:10:38 +00:00
|
|
|
php-versions: ['7.2', '7.3', '7.4']
|
2020-01-30 08:32:31 +00:00
|
|
|
name: php${{ matrix.php-versions }} lint
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@master
|
|
|
|
- name: Set up php${{ matrix.php-versions }}
|
|
|
|
uses: shivammathur/setup-php@master
|
|
|
|
with:
|
|
|
|
php-version: ${{ matrix.php-versions }}
|
|
|
|
coverage: none
|
|
|
|
- name: Lint
|
|
|
|
run: composer run lint
|
2020-02-10 14:27:10 +00:00
|
|
|
- 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
|
2020-01-30 08:32:31 +00:00
|
|
|
|
|
|
|
node-linters:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: ESLint
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
- name: Set up Node
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 12.x
|
|
|
|
- name: npm install
|
|
|
|
run: npm ci
|
|
|
|
- name: eslint
|
|
|
|
run: npm run lint
|
|
|
|
env:
|
|
|
|
CI: true
|