Skip to content

Commit

Permalink
Merge pull request #75 from cakephp/2.x-update-stan
Browse files Browse the repository at this point in the history
update stan + adjust CI config
  • Loading branch information
LordSimal authored Jan 6, 2025
2 parents 32fbb2e + acb00c4 commit c6a6fa4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 38 deletions.
39 changes: 2 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,43 +15,8 @@ permissions:

jobs:
testsuite:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.2', '8.3']
dependencies: ['highest']
include:
- php-version: '8.1'
dependencies: 'lowest'
- php-version: '8.4'
dependencies: 'highest'
composer-options: '--ignore-platform-req=php'

steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl
ini-values: zend.assertions=1
coverage: pcov

- name: Composer install
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.dependencies }}
composer-options: ${{ matrix.composer-options }}

- name: Run PHPUnit
run: |
if [[ ${{ matrix.php-version }} == '8.1' && ${{ matrix.dependencies }} == 'highest' ]]; then
vendor/bin/phpunit --display-deprecations --display-warnings --display-incomplete --display-skipped
else
vendor/bin/phpunit --display-deprecations --display-warnings
fi
uses: cakephp/.github/.github/workflows/[email protected]
secrets: inherit

cs-stan:
uses: cakephp/.github/.github/workflows/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .phive/phars.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="phpstan" version="2.0.1" installed="2.0.1" location="./tools/phpstan" copy="false"/>
<phar name="phpstan" version="2.1.0" installed="2.1.0" location="./tools/phpstan" copy="false"/>
<phar name="psalm" version="5.26.1" installed="5.26.1" location="./tools/psalm" copy="false"/>
</phive>
6 changes: 6 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@
</testsuite>
</testsuites>

<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>

</phpunit>

0 comments on commit c6a6fa4

Please sign in to comment.