Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 6 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,40 +45,23 @@ jobs:
- 8.1
- 8.2
- 8.3
- 8.4
- 8.5

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v6

- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
ini-values: date.timezone='UTC'
ini-values: date.timezone='UTC', register_argc_argv=On
tools: composer:v2

- name: Determine composer cache directory on Linux
if: matrix.os == 'ubuntu-latest'
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV

- name: Determine composer cache directory on Windows
if: matrix.os == 'windows-latest'
run: echo "COMPOSER_CACHE_DIR=~\AppData\Local\Composer" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: Cache dependencies installed with composer
uses: actions/cache@v3
with:
path: ${{ env.COMPOSER_CACHE_DIR }}
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
php${{ matrix.php }}-composer-

- name: Update composer
run: composer self-update

- name: Install dependencies with composer
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
- name: Install Composer dependencies
uses: ramsey/composer-install@v3

- name: Run tests with codeception
run: vendor/bin/codecept run
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
os: >-
['ubuntu-latest']
php: >-
['8.1', '8.2', '8.3']
['8.1', '8.2', '8.3', '8.4']
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

## 1.0.2 under development

- no changes in this release.
- Enh #42: Add `"bump-after-update": true` option to `composer.json` (@vjik)
- Enh #42: Update composer dependencies (@vjik)
- Enh #42: Add PHP 8.4 and 8.5 support (@vjik)
- Enh #42: Disable `ensureOverrideAttribute` option in psalm configuration (@vjik)

## 1.0.1 June 23, 2024

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ to suit your needs.

## Requirements

- PHP 8.1 or higher.
- PHP 8.1 - 8.5.

## Creating a project

Expand Down
25 changes: 13 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@
}
],
"require": {
"php": "^8.1",
"vlucas/phpdotenv": "^5.3",
"yiisoft/aliases": "^3.0",
"yiisoft/log": "^2.0",
"yiisoft/log-target-file": "^3.0",
"yiisoft/yii-console": "^2.0",
"yiisoft/yii-runner-console": "^2.0"
"php": "8.1 - 8.5",
"vlucas/phpdotenv": "^5.6.2",
"yiisoft/aliases": "^3.1.1",
"yiisoft/log": "^2.2",
"yiisoft/log-target-file": "^3.1",
"yiisoft/yii-console": "^2.4.2",
"yiisoft/yii-runner-console": "^2.2.1"
},
"require-dev": {
"codeception/codeception": "^5.0",
"codeception/module-asserts": "^3.0",
"codeception/module-cli": "^2.0",
"codeception/module-phpbrowser": "^3.0",
"vimeo/psalm": "^5.24"
"codeception/codeception": "^5.2.2",
"codeception/module-asserts": "^3.1",
"codeception/module-cli": "^2.0.1",
"codeception/module-phpbrowser": "^3.0.2",
"vimeo/psalm": "^5.26.1 || ^6.14.2"
},
"autoload": {
"psr-4": {
Expand All @@ -59,6 +59,7 @@
},
"config": {
"sort-packages": true,
"bump-after-update": true,
"allow-plugins": {
"infection/extension-installer": true,
"composer/package-versions-deprecated": true,
Expand Down
1 change: 1 addition & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
errorLevel="1"
findUnusedBaselineEntry="true"
findUnusedCode="false"
ensureOverrideAttribute="false"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
Expand Down