Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
olinox14 committed Mar 29, 2024
1 parent 21c4949 commit ade5392
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:

jobs:
test:
name: Unit tests

runs-on: ubuntu-latest

strategy:
Expand All @@ -21,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Setup php
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
Expand All @@ -39,3 +41,29 @@ jobs:
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./vendor/php-coveralls/php-coveralls/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v

phpstan:
name: Code quality

runs-on: ubuntu-latest

strategy:
matrix:
php-versions: [ '8.0', '8.1', '8.2', '8.3' ]

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Validate
run: composer validate

- name: Install
run: composer install --prefer-dist --no-progress

- name: Run PHPStan
run: vendor/bin/phpstan analyse --memory-limit=-1

0 comments on commit ade5392

Please sign in to comment.