Skip to content

Commit

Permalink
Update CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jul 9, 2022
1 parent e785c9d commit aa8a20b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,18 @@ jobs:
php-version: '7.4'
extensions: mbstring, intl
coverage: none
tools: vimeo/psalm:4.23, phpstan:1.8, cs2pr

- name: Composer Install
run: composer require --dev cakephp/cakephp-codesniffer:^4.1 psalm/phar:~4.19 phpstan/phpstan:~1.4
run: composer require --dev cakephp/cakephp-codesniffer:^4.1

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

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

- name: Run phpstan
if: failure() || success()
run: vendor/bin/phpstan.phar analyse --error-format=github
if: always()
run: phpstan analyse --error-format=github
6 changes: 6 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,11 @@
"issues": "https://github.com/FriendsOfCake/crud/issues",
"wiki": "http://crud.readthedocs.org/en/latest/",
"irc": "irc://irc.freenode.org/friendsofcake"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}

0 comments on commit aa8a20b

Please sign in to comment.