Skip to content

Update codestyle

Update codestyle #24

Workflow file for this run

name: Test
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
name: PHP ${{ matrix.php }}
strategy:
matrix:
php:
- '8.1'
- '8.2'
- '8.3'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- name: Get composer cache directory
id: composercache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress
- name: Run linters
run: |
vendor/bin/phpcs src tests
vendor/bin/phpstan analyse -c phpstan.neon
vendor/bin/composer-dependency-analyser
- name: Run tests
run: |
vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover