Skip to content

cs fixes

cs fixes #57

Workflow file for this run

name: Tests
on: [push]
jobs:
cs-check:
name: Check Coding Standards
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache composer
uses: actions/cache@v3
with:
path: ~/.composer/cache/
key: composer-ubuntu-${{ github.sha }}
- name: Setup
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
extensions: mbstring, fileinfo, json, intl, dom
- name: Run composer install
run: composer install -n --prefer-dist
- name: 'php-cs-fixer check'
run: 'vendor/bin/php-cs-fixer fix --dry-run --diff'
env:
PHP_CS_FIXER_IGNORE_ENV: 1
tests:
name: Run tests for PHP ${{ matrix.php-versions }}
runs-on: ubuntu-latest
strategy:
max-parallel: 15
matrix:
php-versions: ['8.0', '8.1', '8.2']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache composer
uses: actions/cache@v3
with:
path: ~/.composer/cache/
key: composer-${{ matrix.php-versions }}-${{ github.sha }}
- name: setup
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, fileinfo, json, intl, dom
- name: Run composer install
run: composer install -n --prefer-dist
- name: Run tests
run: make test