Skip to content

Commit

Permalink
Improve the supported versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Elendev committed Aug 15, 2024
1 parent 665ef86 commit 5946319
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/testing-and-cs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
fail-fast: false
matrix:
php: ["8.0", "8.1"]
composer: ["2.0", "2.1", "2.2", "2.3"]
composer: ["2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7"]
symfony: ["^5.4", "^6.0"]
steps:
- name: Checkout repository
Expand All @@ -58,9 +58,30 @@ jobs:
- run: composer install
- run: vendor/bin/phpunit

PHPUnit-Symfony7:
name: PHPUnit testing
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ["8.2"]
composer: ["2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7"]
symfony: ["^7.0"]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: 'Unit testing'
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:${{ matrix.composer }}
- run: composer require "symfony/finder:${{ matrix.symfony }}" "symfony/filesystem:${{ matrix.symfony }}"
- run: composer install
- run: vendor/bin/phpunit

BuildDone:
name: PHP full build
needs: [PHPCS, PHPUnit-Symfony45, PHPUnit-Symfony56]
needs: [PHPCS, PHPUnit-Symfony45, PHPUnit-Symfony56, PHPUnit-Symfony7]
runs-on: ubuntu-latest
steps:
- run: "echo build done"
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"ext-zip": "*",
"composer-plugin-api": "^1.1|^2.0",
"guzzlehttp/guzzle": "^6.0|^7.0",
"symfony/finder": "^4.0|^5.0|^6.0",
"symfony/filesystem": "^4.0|^5.0|^6.0"
"symfony/finder": "^4.0|^5.0|^6.0|^7.0",
"symfony/filesystem": "^4.0|^5.0|^6.0|^7.0"
},
"extra": {
"class": "Elendev\\ComposerPush\\Plugin"
Expand Down

0 comments on commit 5946319

Please sign in to comment.