From 8bb95b02da484098b38e51ebe9cd4ff79908e332 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Sat, 20 Jan 2024 19:29:02 -0300 Subject: [PATCH] Add workflow compatibility. --- .github/workflows/build.yml | 2 ++ .github/workflows/compatibility.yml | 34 +++++++++++++++++++++++++++++ README.md | 5 +++-- 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/compatibility.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8b48266..b24b7cb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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'] diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml new file mode 100644 index 0000000..b9742e6 --- /dev/null +++ b/.github/workflows/compatibility.yml @@ -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'] diff --git a/README.md b/README.md index 131b109..f5b3889 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,9 @@ PHPUnit + + Compatibility + Codecov @@ -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: @@ -161,7 +163,6 @@ return [ ]; ``` - ## Testing [Check the documentation testing](/docs/testing.md) to learn about testing.