Merge pull request #1527 from nextcloud/tests/more-github-actions
More github actions
This commit is contained in:
25
.drone.yml
25
.drone.yml
@@ -130,28 +130,3 @@ trigger:
|
|||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
||||||
- push
|
- push
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
name: frontend
|
|
||||||
steps:
|
|
||||||
- name: install
|
|
||||||
image: node:lts-alpine
|
|
||||||
commands:
|
|
||||||
- npm install
|
|
||||||
- name: eslint
|
|
||||||
image: node:lts-alpine
|
|
||||||
commands:
|
|
||||||
- npm run lint
|
|
||||||
- name: jsbuild
|
|
||||||
image: node:lts-alpine
|
|
||||||
commands:
|
|
||||||
- npm run build
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
- stable*
|
|
||||||
- vue
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
- push
|
|
||||||
|
|||||||
45
.github/workflows/lint.yml
vendored
Normal file
45
.github/workflows/lint.yml
vendored
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
name: Lint
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- stable*
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
php:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
php-versions: ['7.2', '7.3', '7.4']
|
||||||
|
|
||||||
|
name: php${{ matrix.php-versions }} lint
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up php${{ matrix.php-versions }}
|
||||||
|
uses: shivammathur/setup-php@v1
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php-versions }}
|
||||||
|
coverage: none
|
||||||
|
- name: Lint
|
||||||
|
run: composer run lint
|
||||||
|
|
||||||
|
node:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [12.x]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use node ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: ESLint
|
||||||
|
run: npm run lint
|
||||||
5
.github/workflows/nodejs.yml
vendored
5
.github/workflows/nodejs.yml
vendored
@@ -23,9 +23,4 @@ jobs:
|
|||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
npm run build --if-present
|
npm run build --if-present
|
||||||
- name: eslint
|
|
||||||
run: |
|
|
||||||
npm run lint
|
|
||||||
env:
|
|
||||||
CI: true
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,5 +16,12 @@
|
|||||||
"christophwurst/nextcloud": "^17",
|
"christophwurst/nextcloud": "^17",
|
||||||
"jakub-onderka/php-parallel-lint": "^1.0.0",
|
"jakub-onderka/php-parallel-lint": "^1.0.0",
|
||||||
"phpunit/phpunit": "^8"
|
"phpunit/phpunit": "^8"
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"optimize-autoloader": true,
|
||||||
|
"classmap-authoritative": true
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user