-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented ADmad's suggestions about dependencies, phpunit, psalm an…
…d phpstan isues
- Loading branch information
Justin Ruiter
committed
Apr 4, 2024
1 parent
8eb7baf
commit aed6bc4
Showing
11 changed files
with
66 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,11 +14,11 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: ['8.2', '8.3'] | ||
php-version: ['8.1', '8.2', '8.3'] | ||
db-type: ['mysql', 'pgsql'] | ||
prefer-lowest: [''] | ||
include: | ||
- php-version: '8.3' | ||
- php-version: '8.1' | ||
db-type: 'sqlite' | ||
prefer-lowest: 'prefer-lowest' | ||
|
||
|
@@ -61,14 +61,14 @@ jobs: | |
if [[ ${{ matrix.db-type }} == 'mysql' ]]; then export DB_URL='mysql://root:[email protected]/cakephp'; fi | ||
if [[ ${{ matrix.db-type }} == 'pgsql' ]]; then export DB_URL='postgres://postgres:[email protected]/postgres'; fi | ||
if [[ ${{ matrix.php-version }} == '8.3' && ${{ matrix.db-type }} == 'mysql' ]]; then | ||
if [[ ${{ matrix.php-version }} == '8.1' && ${{ matrix.db-type }} == 'mysql' ]]; then | ||
vendor/bin/phpunit --coverage-clover=coverage.xml | ||
else | ||
vendor/bin/phpunit | ||
fi | ||
- name: Code Coverage Report | ||
if: success() && matrix.php-version == '8.3' && matrix.db-type == 'mysql' | ||
if: success() && matrix.php-version == '8.1' && matrix.db-type == 'mysql' | ||
uses: codecov/codecov-action@v1 | ||
|
||
cs-stan: | ||
|
@@ -81,7 +81,7 @@ jobs: | |
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.3' | ||
php-version: '8.1' | ||
extensions: mbstring, intl | ||
coverage: none | ||
tools: psalm:5.23.1, phpstan:1.10.65 | ||
|
@@ -90,8 +90,7 @@ jobs: | |
run: composer require cakephp/cakephp-codesniffer:^4.2 | ||
|
||
- name: Run phpcs | ||
# Exclude Type hint sniffing, as it interferes with psalm | ||
run: vendor/bin/phpcs --standard=CakePHP --exclude=CakePHP.Classes.ReturnTypeHint src/ tests/ | ||
run: vendor/bin/phpcs --standard=CakePHP src/ tests/ | ||
|
||
- name: Run psalm | ||
if: success() || failure() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.