Skip to content

Commit

Permalink
Improve github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Oct 15, 2023
1 parent a59fe0f commit 33f4150
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ jobs:

- name: Run Unit tests with coverage
run: composer phpunit -- ${{ matrix.phpunit-flags }}
if: ${{ matrix.php == '8.2' || matrix.php == '8.1'}}

- name: Run Unit tests without coverage
run: composer phpcs:fix
if: ${{ matrix.php == '8.3' && matrix.stability == 'prefer-stable'}}

- name: Run static analysis
run: composer phpstan
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"phpcs:fix": "php-cs-fixer fix -vvv --allow-risky=yes --ansi",
"phpstan": "phpstan analyse -c phpstan.neon --ansi --memory-limit=192M",
"phpunit": "XDEBUG_MODE=coverage phpunit --coverage-text",
"phpunit:min": "phpunit --no-coverage",
"test": [
"@phpunit",
"@phpstan",
Expand Down

0 comments on commit 33f4150

Please sign in to comment.