Skip to content

Commit

Permalink
Add workflow compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Jan 20, 2024
1 parent 2cfb385 commit 8bb95b0
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 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.0 --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']
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
<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>
Expand Down Expand Up @@ -70,7 +73,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,7 +163,6 @@ return [
];
```


## Testing

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

0 comments on commit 8bb95b0

Please sign in to comment.