Skip to content

Commit de6a79d

Browse files
feat: Consolidate PHPUnit workflows and update README.md with Yii2 version badges. (#14)
1 parent 34446d4 commit de6a79d

File tree

3 files changed

+21
-38
lines changed

3 files changed

+21
-38
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@ jobs:
2323
with:
2424
composer-command: |
2525
composer require yiisoft/yii2:22.0.x-dev --prefer-dist --no-progress --no-interaction --no-scripts --ansi
26+
concurrency-group: phpunit-${{ github.workflow }}-${{ github.ref }}
27+
os: >-
28+
['ubuntu-latest', 'windows-latest']
29+
php: >-
30+
['8.1', '8.2', '8.3', '8.4']
31+
phpunit-compatibility:
32+
uses: php-forge/actions/.github/workflows/phpunit.yml@main
33+
concurrency:
34+
group: compatibility-${{ github.workflow }}-${{ github.ref }}
35+
cancel-in-progress: true
36+
with:
37+
concurrency-group: compatibility-${{ github.workflow }}-${{ github.ref }}
38+
extensions: intl
2639
os: >-
2740
['ubuntu-latest', 'windows-latest']
2841
php: >-

.github/workflows/compatibility.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@
99
<a href="https://www.php.net/releases/8.1/en.php" target="_blank">
1010
<img src="https://img.shields.io/badge/PHP-%3E%3D8.1-787CB5" alt="php-version">
1111
</a>
12+
<a href="https://github.com/yiisoft/yii2/tree/2.0.52" target="_blank">
13+
<img src="https://img.shields.io/badge/Yii2%20version-2.0.52-blue" alt="Yii2 version 2.0.52">
14+
</a>
15+
<a href="https://github.com/yiisoft/yii2/tree/22.0" target="_blank">
16+
<img src="https://img.shields.io/badge/Yii2%20-22-blue" alt="Yii2 version 22">
17+
</a>
1218
<a href="https://github.com/yii2-extensions/phpstan/actions/workflows/build.yml" target="_blank">
1319
<img src="https://github.com/yii2-extensions/phpstan/actions/workflows/build.yml/badge.svg" alt="PHPUnit">
1420
</a>
15-
<a href="https://github.com/yii2-extensions/phpstan/actions/workflows/compatibility.yml" target="_blank">
16-
<img src="https://github.com/yii2-extensions/phpstan/actions/workflows/compatibility.yml/badge.svg" alt="PHPUnit">
21+
<a href="https://github.com/yii2-extensions/phpstan/actions/workflows/static.yml" target="_blank">
22+
<img src="https://github.com/yii2-extensions/phpstan/actions/workflows/static.yml/badge.svg" alt="Static Analysis">
1723
</a>
1824
<a href="https://codecov.io/gh/yii2-extensions/phpstan" target="_blank">
1925
<img src="https://codecov.io/gh/yii2-extensions/phpstan/branch/main/graph/badge.svg?token=MF0XUGVLYC" alt="Codecov">
@@ -40,15 +46,9 @@ to the require-dev section of your `composer.json` file.
4046

4147
## Quality code
4248

43-
[![static-analysis](https://github.com/yii2-extensions/phpstan/actions/workflows/static.yml/badge.svg)](https://github.com/yii2-extensions/phpstan/actions/workflows/static.yml)
4449
[![phpstan-level](https://img.shields.io/badge/PHPStan%20level-6-blue)](https://github.com/yii2-extensions/phpstan/actions/workflows/static.yml)
4550
[![style-ci](https://github.styleci.io/repos/701347895/shield?branch=main)](https://github.styleci.io/repos/701347895?branch=main)
4651

47-
## Support versions Yii2
48-
49-
[![Yii20](https://img.shields.io/badge/Yii2%20version-2.0-blue)](https://github.com/yiisoft/yii2/tree/2.0.49.3)
50-
[![Yii22](https://img.shields.io/badge/Yii2%20version-2.2-blue)](https://github.com/yiisoft/yii2/tree/2.2)
51-
5252
## Testing
5353

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

0 commit comments

Comments
 (0)