Skip to content

Remove redundant class docblock #13

Remove redundant class docblock

Remove redundant class docblock #13

name: Continuous Integration
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.1.33', '7.2', '7.3', '7.4', '8.0']
steps:
- uses: actions/checkout@v2
- name: Analising source code
run: find ./src/ ./inc/ ./tests/ -type f -name '*.php' -print0 | xargs -0 -L 1 -P 4 -- php -l
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
- name: PhpCS
run: ./vendor/bin/phpcs
- name: Psalm
run: ./vendor/bin/psalm --show-info=false
- name: PhpUnit
run: ./vendor/bin/phpunit