mirror of
https://github.com/friendica/friendica
synced 2024-12-22 10:19:45 +01:00
Enable PHP linting per Drone
This commit is contained in:
parent
af1896f4d2
commit
c642062aa0
2 changed files with 31 additions and 18 deletions
32
.drone.yml
32
.drone.yml
|
@ -11,4 +11,34 @@ steps:
|
||||||
- name: Check default
|
- name: Check default
|
||||||
image: friendicaci/transifex
|
image: friendicaci/transifex
|
||||||
commands:
|
commands:
|
||||||
- /check-messages.sh
|
- /check-messages.sh
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: php7.3-lint
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Test
|
||||||
|
image: php:7.3
|
||||||
|
commands:
|
||||||
|
- ./bin/composer.phar run lint
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: php7.4-lint
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Test
|
||||||
|
image: php:7.4
|
||||||
|
commands:
|
||||||
|
- ./bin/composer.phar run lint
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: php8.0-lint
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Test
|
||||||
|
image: php:8.0
|
||||||
|
commands:
|
||||||
|
- ./bin/composer.phar run lint
|
||||||
|
|
17
.github/workflows/lint.yml
vendored
17
.github/workflows/lint.yml
vendored
|
@ -2,23 +2,6 @@ name: Lint
|
||||||
on: pull_request
|
on: pull_request
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
php-linters:
|
|
||||||
name: php${{ matrix.php-versions }} lint
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
php-versions: ['7.3', '7.4', '8.0']
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Set up php${{ matrix.php-versions }}
|
|
||||||
uses: shivammathur/setup-php@master
|
|
||||||
with:
|
|
||||||
php-version: ${{ matrix.php-versions }}
|
|
||||||
coverage: none
|
|
||||||
- name: Lint
|
|
||||||
run: bin/composer.phar run lint
|
|
||||||
|
|
||||||
php-cs-fixer:
|
php-cs-fixer:
|
||||||
name: php-cs check
|
name: php-cs check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in a new issue