Skip to content

Commit

Permalink
Allow install any version yii2. (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw authored Jan 20, 2024
1 parent b1700a3 commit 02aa181
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
phpunit:
uses: yiisoft/actions/.github/workflows/phpunit.yml@master
with:
composer-command: |
composer require yiisoft/yii2:^2.2.x-dev --prefer-dist --no-progress --no-interaction --no-scripts --ansi
extensions: mbstring, intl
os: >-
['ubuntu-latest', 'windows-latest']
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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.49 --prefer-dist --no-progress --no-interaction --no-scripts --ansi
extensions: intl
os: >-
['ubuntu-latest', 'windows-latest']
php: >-
['8.1', '8.2', '8.3']
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,12 @@
<a href="https://github.com/yii2-extensions/debug/actions/workflows/build.yml" target="_blank">
<img src="https://github.com/yii2-extensions/debug/actions/workflows/build.yml/badge.svg" alt="PHPUnit">
</a>
<a href="https://github.com/yii2-extensions/debug/actions/workflows/compatibility.yml" target="_blank">
<img src="https://github.com/yii2-extensions/debug/actions/workflows/compatibility.yml/badge.svg" alt="Compatibility">
</a>
<a href="https://codecov.io/gh/yii2-extensions/debug" target="_blank">
<img src="https://codecov.io/gh/yii2-extensions/debug/branch/main/graph/badge.svg?token=MF0XUGVLYC" alt="Codecov">
</a>
<a href="https://github.com/yii2-extensions/debug/actions/workflows/static.yml" target="_blank">
<img src="https://github.com/yii2-extensions/debug/actions/workflows/static.yml/badge.svg" alt="PHPStan">
</a>
<a href="https://github.com/yii2-extensions/debug/actions/workflows/static.yml" target="_blank">
<img src="https://img.shields.io/badge/PHPStan%20level-1-blue" alt="PHPStan level">
</a>
<a href="https://github.styleci.io/repos/699842423?branch=main" target="_blank">
<img src="https://github.styleci.io/repos/699842423/shield?branch=main" alt="Code style">
</a>
</a>
</p>

## Installation
Expand Down Expand Up @@ -70,7 +64,6 @@ return [
You will see a debugger toolbar showing at the bottom of every page of your application.
You can click on the toolbar to see more detailed debug information.


### Open Files in IDE

You can create a link to open files in your favorite IDE with this configuration:
Expand Down Expand Up @@ -161,11 +154,16 @@ return [
];
```


## Testing

[Check the documentation testing](/docs/testing.md) to learn about testing.

## Quality code

[![static-analysis](https://github.com/yii2-extensions/debug/actions/workflows/static.yml/badge.svg)](https://github.com/yii2-extensions/debug/actions/workflows/static.yml)
[![phpstan-level](https://img.shields.io/badge/PHPStan%20level-1-blue)](https://github.com/yii2-extensions/debug/actions/workflows/static.yml)
[![StyleCI](https://github.styleci.io/repos/699842423/shield?branch=main)](https://github.styleci.io/repos/699842423?branch=main)

## Our social networks

[![Twitter](https://img.shields.io/badge/twitter-follow-1DA1F2?logo=twitter&logoColor=1DA1F2&labelColor=555555?style=flat)](https://twitter.com/Terabytesoftw)
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
"ext-mbstring": "*",
"ext-intl": "*",
"symfony/mime": "^6.3",
"yiisoft/yii2": "^2.2",
"yiisoft/yii2": "*",
"yiisoft/yii2-symfonymailer": "^3.0"
},
"require-dev": {
"maglnet/composer-require-checker": "^4.6",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.2",
"rector/rector": "^0.18",
"rector/rector": "^0.19",
"yii2-extensions/phpstan": "dev-main"
},
"autoload": {
Expand Down

0 comments on commit 02aa181

Please sign in to comment.