Skip to content

Utils created

Utils created #20

Workflow file for this run

name: Quality assurance
on:
push:
pull_request:
jobs:
tests:
strategy:
matrix:
php-version: ['5.5', '8.2']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
coverage: none
- name: Install dependencies
run: composer install
- name: Run tests
run: vendor/bin/phpunit
code-style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: composer:v2,phpcs,cs2pr
coverage: none
- name: Install dependencies
run: composer install
- name: Check code style
run: phpcs --report=checkstyle src | cs2pr
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: '5.5'
tools: composer:v2,parallel-lint
coverage: none
- name: Install dependencies
run: composer install
- name: Lint PHP files
run: parallel-lint src tests