2020-02-25 21:51:06 +03:00
|
|
|
name: Lint
|
2020-02-26 15:31:37 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- stable*
|
2020-02-25 21:51:06 +03:00
|
|
|
|
|
|
|
jobs:
|
2020-02-26 15:31:37 +03:00
|
|
|
php:
|
2020-02-25 21:51:06 +03:00
|
|
|
runs-on: ubuntu-latest
|
2020-02-26 15:31:37 +03:00
|
|
|
|
2020-02-25 21:51:06 +03:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-02-26 15:31:37 +03:00
|
|
|
php-versions: ['7.2', '7.3', '7.4']
|
|
|
|
|
|
|
|
name: php${{ matrix.php-versions }}
|
2020-02-25 21:51:06 +03:00
|
|
|
steps:
|
2020-02-26 15:31:37 +03:00
|
|
|
- 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:
|
2020-02-25 21:51:06 +03:00
|
|
|
runs-on: ubuntu-latest
|
2020-02-26 15:31:37 +03:00
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node-versions: [12.x]
|
|
|
|
|
|
|
|
name: node${{ matrix.node-versions }}
|
2020-02-25 21:51:06 +03:00
|
|
|
steps:
|
2020-02-26 15:31:37 +03:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up node ${{ matrix.node-versions }}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-versions: ${{ matrix.node-versions }}
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
- name: Lint
|
|
|
|
run: npm run lint
|