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
102 changes: 0 additions & 102 deletions .github/CODE_OF_CONDUCT.md

This file was deleted.

5 changes: 0 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

23 changes: 13 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: build

permissions:
contents: read

on:
pull_request:
pull_request: &ignore-paths
paths-ignore:
- 'docs/**'
- 'README.md'
Expand All @@ -10,20 +15,18 @@ on:
- 'psalm.xml'

push:
<<: *ignore-paths
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'

name: build
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
phpunit:
uses: yiisoft/actions/.github/workflows/phpunit.yml@master
secrets:
codecovToken: ${{ secrets.CODECOV_TOKEN }}
with:
php: >-
['8.1', '8.2', '8.3', '8.4', '8.5']
25 changes: 13 additions & 12 deletions .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
name: Composer require checker

permissions:
contents: read

on:
pull_request:
pull_request: &ignore-paths
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'
- 'psalm.xml'

push:
<<: *ignore-paths
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'
- 'psalm.xml'

name: Composer require checker
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
composer-require-checker:
uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master
with:
php: >-
['8.1', '8.2', '8.3', '8.4', '8.5']
23 changes: 14 additions & 9 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
name: mutation test

permissions:
contents: read

on:
pull_request:
pull_request: &ignore-paths
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'

push:
<<: *ignore-paths
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'psalm.xml'

name: mutation test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
mutation:
uses: yiisoft/actions/.github/workflows/roave-infection.yml@master
secrets:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
with:
php: >-
['8.5']
6 changes: 3 additions & 3 deletions .github/workflows/rector-cs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Rector + PHP CS Fixer

permissions:
contents: read

on:
pull_request_target:
paths:
Expand All @@ -10,9 +13,6 @@ on:
- 'rector.php'
- '.php-cs-fixer.dist.php'

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
25 changes: 14 additions & 11 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
name: static analysis

permissions:
contents: read

on:
pull_request:
pull_request: &ignore-paths
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'
- 'psalm.xml'

push:
<<: *ignore-paths
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'

name: static analysis
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
psalm:
uses: yiisoft/actions/.github/workflows/psalm.yml@master
with:
php: >-
['8.1', '8.2', '8.3', '8.4', '8.5']
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Bug #288: Add support for custom togglerClasses in `Dropdown` widget, and `addDropdownClass()` method (@terabytesoftw)
- Enh #291: Add `navId()` method to `NavBar` widget (@terabytesoftw)
- Enh #294: Explicitly import classes and functions in "use" section (@mspirkov)
- Enh #296: Add PHP 8.5 support (@terabytesoftw)

## 1.0.0 April 13, 2025

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ use Yiisoft\Html\Tag\P;

## Requirements

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

## Installation

Expand Down
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"chat": "https://t.me/yii3en"
},
"require": {
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
"php": "8.1 - 8.5",
Comment thread
vjik marked this conversation as resolved.
"yiisoft/html": "^3.0",
"yiisoft/widget": "^2.0"
},
Expand Down Expand Up @@ -61,8 +61,10 @@
}
],
"scripts": {
"check-dependencies": "./vendor/bin/composer-require-checker check",
"mutation": "vendor/bin/roave-infection-static-analysis-plugin --threads=2 --min-msi=100 --min-covered-msi=100 --ignore-msi-with-no-mutations --only-covered",
"test": "phpunit --testdox --no-interaction",
"static": "vendor/bin/psalm",
"test": "phpunit --testdox",
"test-watch": "phpunit-watcher watch"
}
}
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<directory>./src</directory>
</include>
<exclude>
<directory>./src/Assets</directory>
<directory>./tests</directory>
<directory>./vendor</directory>
</exclude>
Expand Down