Skip to content

Run PHPCS with custom rules in GH actions #12

Run PHPCS with custom rules in GH actions

Run PHPCS with custom rules in GH actions #12

Workflow file for this run

name: Unit tests & PHPCS
on:
push:
jobs:
test-and-code-style:
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.1]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: composer install --prefer-dist
- name: Run tests
run: vendor/bin/phpunit --bootstrap __tests__/bootstrap.php __tests__
- name: Run PHPCS
run: vendor/bin/phpcs --standard=phpcs.xml --extensions=php --ignore=vendor/ .