Skip to content

add phpcs

add phpcs #6

Workflow file for this run

name: Check PHP syntax
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.3']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer
- name: checkout repo
uses: actions/checkout@v3
- run: composer install --no-progress
- name: PHPCodeSniffer
run: ./vendor/bin/phpcs -ns
- name: PHPUnit
run: ./vendor/bin/phpunit