Skip to content

Commit 923f9be

Browse files
committed
Support all versions Yii2.
1 parent 3b17248 commit 923f9be

File tree

5 files changed

+49
-6
lines changed

5 files changed

+49
-6
lines changed
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
on:
2+
pull_request:
3+
paths-ignore:
4+
- 'docs/**'
5+
- 'README.md'
6+
- 'CHANGELOG.md'
7+
- '.gitignore'
8+
- '.gitattributes'
9+
- 'infection.json.dist'
10+
- 'psalm.xml'
11+
12+
push:
13+
paths-ignore:
14+
- 'docs/**'
15+
- 'README.md'
16+
- 'CHANGELOG.md'
17+
- '.gitignore'
18+
- '.gitattributes'
19+
- 'infection.json.dist'
20+
- 'psalm.xml'
21+
22+
name: build
23+
24+
jobs:
25+
phpunit:
26+
uses: php-forge/actions/.github/workflows/phpunit.yml@main
27+
with:
28+
composer-command: |
29+
composer require yiisoft/yii2:^2.0.49 --prefer-dist --no-progress --no-suggest --no-interaction --no-scripts --ansi
30+
31+
extensions: intl
32+
os: >-
33+
['ubuntu-latest', 'windows-latest']
34+
php: >-
35+
['8.1', '8.2', '8.3']

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ name: build
2323

2424
jobs:
2525
phpunit:
26-
uses: yiisoft/actions/.github/workflows/phpunit.yml@master
26+
uses: php-forge/actions/.github/workflows/phpunit.yml@main
2727
with:
2828
extensions: intl
2929
os: >-

.github/workflows/dependency-check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ name: Composer require checker
2525

2626
jobs:
2727
composer-require-checker:
28-
uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master
28+
uses: php-forge/actions/.github/workflows/composer-require-checker.yml@main
2929
with:
3030
os: >-
3131
['ubuntu-latest']

README.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
<a href="https://www.php.net/releases/8.1/en.php" target="_blank">
1111
<img src="https://img.shields.io/badge/PHP-%3E%3D8.1-787CB5" alt="php-version">
1212
</a>
13-
<a href="https://github.com/yiisoft/yii2/tree/2.2" target="_blank">
14-
<img src="https://img.shields.io/badge/Yii2%20version-2.2-blue" alt="yii2-version">
15-
</a>
1613
<a href="https://github.com/yii2-extensions/filepond/actions/workflows/build.yml" target="_blank">
1714
<img src="https://github.com/yii2-extensions/filepond/actions/workflows/build.yml/badge.svg" alt="PHPUnit">
1815
</a>
@@ -88,6 +85,17 @@ $imageFile = FileProcessing::saveWithReturningFile(
8885
);
8986
```
9087

88+
## Support versions Yii2
89+
90+
<p>
91+
<a href="https://github.com/yiisoft/yii2/tree/2.2" target="_blank">
92+
<img src="https://img.shields.io/badge/Yii2%20version-2.2-blue" alt="yii2-version">
93+
</a>
94+
<a href="https://github.com/yiisoft/yii2/tree/2.0.49.3" target="_blank">
95+
<img src="https://img.shields.io/badge/Yii2%20version-2.0.49.3-blue" alt="yii2-version">
96+
</a>
97+
</p>
98+
9199
## Testing
92100

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

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"oomphinc/composer-installers-extender": "^2.0",
2727
"php-forge/awesome-widget": "dev-main",
2828
"php-forge/html": "dev-main",
29-
"yiisoft/yii2": "^2.2"
29+
"yiisoft/yii2": "*"
3030
},
3131
"require-dev": {
3232
"maglnet/composer-require-checker": "^4.6",

0 commit comments

Comments
 (0)