contacts/.github/workflows/lint.yml

52 lines
963 B
YAML
Raw Normal View History

2020-01-29 16:27:21 +00:00
name: Lint
on:
pull_request:
push:
branches:
- master
- stable*
2020-01-29 16:27:21 +00:00
jobs:
php:
2020-01-29 16:27:21 +00:00
runs-on: ubuntu-latest
2020-01-29 16:27:21 +00:00
strategy:
matrix:
php-versions: ['7.2', '7.3', '7.4']
name: php${{ matrix.php-versions }}
2020-01-29 16:27:21 +00:00
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:
2020-01-29 16:27:21 +00:00
runs-on: ubuntu-latest
strategy:
matrix:
node-versions: [12.x]
name: node${{ matrix.node-versions }}
2020-01-29 16:27:21 +00:00
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 lint