Skip to content

Update Makefile

Update Makefile #25

Workflow file for this run

name: CS - File lint and file validation
on:
push:
pull_request:
paths:
- '**workflows/lint.yml'
- '**.php'
- '**phpcs.xml.dist'
- '**composer.json'
jobs:
lint:
name: ✔ CS check al files
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '--skip ci') && !github.event.pull_request.draft"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Validate php files
run: find ./src/ ./tests/ -type f -name '*.php' -print0 | xargs -0 -L 1 -P 4 -- php -l
- uses: ramsey/composer-install@v2
- name: Coding standard
run: composer run cs