Skip to content

Commit

Permalink
Update CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jun 28, 2022
1 parent 1994e97 commit b4ae103
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 19 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
POSTGRES_PASSWORD: postgres

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Service
if: matrix.db-type == 'mysql'
Expand Down Expand Up @@ -76,25 +76,26 @@ jobs:
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: mbstring, intl
coverage: none
tools: cs2pr

- name: Composer Install
run: composer stan-setup

- name: Run phpcs
run: vendor/bin/phpcs src/ tests/
run: vendor/bin/phpcs --report=checkstyle src/ tests/ | cs2pr

- name: Run psalm
if: success() || failure()
if: always()
run: vendor/bin/psalm.phar --output-format=github

- name: Run phpstan
if: success() || failure()
if: always()
run: vendor/bin/phpstan
13 changes: 0 additions & 13 deletions .stickler.yml

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"scripts": {
"cs-check": "phpcs -p src/ tests/",
"cs-fix": "phpcbf src/ tests/",
"stan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan:~1.4.0 psalm/phar:~4.22.0 && mv composer.backup composer.json",
"stan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan:~1.7.0 psalm/phar:~4.23.0 && mv composer.backup composer.json",
"phpstan": "phpstan.phar analyse",
"psalm": "psalm.phar",
"stan": [
Expand Down
2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ parameters:
- src/
bootstrapFiles:
- tests/bootstrap.php
- vendor/cakephp/cakephp/src/Core/Exception/CakeException.php
- vendor/cakephp/cakephp/src/Database/Exception/DatabaseException.php
ignoreErrors:
- '#Call to an undefined method Cake\\ORM\\Table::searchManager\(\)#'
- '#PHPDoc tag @var for variable \$model contains unresolvable type#'

0 comments on commit b4ae103

Please sign in to comment.