diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 719d5a9..3291219 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ name: build jobs: phpunit: - uses: yiisoft/actions/.github/workflows/phpunit.yml@master + uses: php-forge/actions/.github/workflows/phpunit.yml@main with: os: >- ['ubuntu-latest', 'windows-latest'] diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml new file mode 100644 index 0000000..3a492c6 --- /dev/null +++ b/.github/workflows/compatibility.yml @@ -0,0 +1,35 @@ +on: + pull_request: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' + - 'infection.json.dist' + - 'psalm.xml' + + push: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' + - 'infection.json.dist' + - 'psalm.xml' + +name: compatibility + +jobs: + phpunit: + uses: php-forge/actions/.github/workflows/phpunit.yml@main + with: + composer-command: | + composer require yiisoft/yii2:^2.0 --prefer-dist --no-progress --no-suggest --no-interaction --no-scripts --ansi + + extensions: intl + os: >- + ['ubuntu-latest', 'windows-latest'] + php: >- + ['8.1', '8.2', '8.3'] diff --git a/.github/workflows/dependency-check.yml b/.github/workflows/dependency-check.yml index b115ab1..c649354 100644 --- a/.github/workflows/dependency-check.yml +++ b/.github/workflows/dependency-check.yml @@ -25,7 +25,7 @@ name: Composer require checker jobs: composer-require-checker: - uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master + uses: php-forge/actions/.github/workflows/composer-require-checker.yml@main with: os: >- ['ubuntu-latest'] diff --git a/README.md b/README.md index 2201723..985a86f 100644 --- a/README.md +++ b/README.md @@ -21,16 +21,7 @@ Infection - - - PHPStan - - - PHPStan level - - - Code style - +

## Installation @@ -113,6 +104,17 @@ use Yii2\Asset\PopperCdnAsset; PopperCdnAsset::register($this); ``` +## Quality code + +[![static-analysis](https://github.com/yii2-extensions/asset-bootstrap5/actions/workflows/static.yml/badge.svg)](hhttps://github.com/yii2-extensions/asset-bootstrap5/actions/workflows/static.yml) +[![phpstan-level](https://img.shields.io/badge/PHPStan%20level-7-blue)](https://github.com/yii2-extensions/asset-bootstrap5/actions/workflows/static.yml) +[![style-ci](https://github.styleci.io/repos/719651888/shield?branch=main)](https://github.styleci.io/repos/719651888?branch=main) + +## Support versions Yii2 + +[![Yii20](https://img.shields.io/badge/Yii2%20version-2.0-blue)](https://github.com/yiisoft/yii2/tree/2.0.49.3) +[![Yii22](https://img.shields.io/badge/Yii2%20version-2.2-blue)](https://img.shields.io/badge/Yii2%20version-2.2-blue) + ## Testing [Check the documentation testing](/docs/testing.md) to learn about testing. diff --git a/composer.json b/composer.json index dcc2dbd..287356c 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "npm-asset/bootstrap": "^5.3", "npm-asset/popperjs--core": "^2.11", "oomphinc/composer-installers-extender": "^2.0", - "yiisoft/yii2": "^2.2" + "yiisoft/yii2": "*" }, "require-dev": { "maglnet/composer-require-checker": "^4.6",