Skip to content

Commit

Permalink
feat: Added support for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
igorhrcek committed Apr 12, 2022
1 parent ee7a2a2 commit 808b561
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Lint
on:
pull_request:
branches:
- master
jobs:
lint:
runs-on: 'ubuntu-latest'
strategy:
matrix:
php-versions: ['7.4', '8.0', '8.1']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer,phpstan, phpcs
- name: Install composer packages
run: |
composer update
composer install
- name: Lint and run checks with phpstan
run: phpstan analyse src --level=5
- name: Check codestyle with phpcs
run: phpcs src

0 comments on commit 808b561

Please sign in to comment.