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
|
|
|
|
|
2020-04-29 12:42:39 +03:00
|
|
|
php-cs-fixer:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
php-versions: ['7.4']
|
|
|
|
|
|
|
|
name: cs php${{ matrix.php-versions }}
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@master
|
|
|
|
|
|
|
|
- name: Set up php
|
|
|
|
uses: shivammathur/setup-php@master
|
|
|
|
with:
|
|
|
|
php-version: ${{ matrix.php-versions }}
|
|
|
|
coverage: none
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: composer i
|
|
|
|
|
|
|
|
- name: Run coding standards check
|
|
|
|
run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 )
|
|
|
|
|
2020-02-26 15:31:37 +03:00
|
|
|
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]
|
|
|
|
|
2020-04-29 12:42:39 +03:00
|
|
|
name: eslint 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
|
2020-04-29 12:42:39 +03:00
|
|
|
|
|
|
|
stylelint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node-versions: [12.x]
|
|
|
|
|
|
|
|
name: stylelint node${{ matrix.node-versions }}
|
|
|
|
steps:
|
|
|
|
- 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 stylelint
|