Skip to content

Commit

Permalink
feat: support sf 7 & php 8.4 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi authored Sep 16, 2024
1 parent 6b2d544 commit 5f00a3d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php: [ '8.1', '8.2' ]
symfony: [ '6.*' ]
php: [ '8.1', '8.2', '8.3', '8.4' ]
symfony: [ '6.*', '7.*' ]
dep: [highest,lowest]
exclude:
# Symfony 7 requires PHP >=8.2
- php: '8.1'
symfony: '7.*'

runs-on: ${{ matrix.operating-system }}

Expand Down Expand Up @@ -49,17 +53,18 @@ jobs:
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.dep }}
composer-options: --prefer-dist --no-progress
composer-options: --prefer-dist --no-progress --ignore-platform-reqs
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}

- name: Run psalm
run: vendor/bin/psalm
if: matrix.dep == 'highest'

- name: Run phpstan
run: vendor/bin/phpstan analyse

- name: Run phpunit
run: |
export SYMFONY_DEPRECATIONS_HELPER='max[direct]=0'
vendor/bin/phpunit --testdox
vendor/bin/phpunit
4 changes: 1 addition & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
## 1.2.0

* test: update phpstan and psalm

## 1.2.0

* chore: update coding style
* feat: support Symfony 7 & PHP 8.4

## 1.1.0

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"require-dev": {
"phpstan/phpstan": "^1.12",
"phpstan/phpstan-phpunit": "^1.3",
"phpunit/phpunit": "^10.4",
"phpunit/phpunit": "^10.5",
"psalm/plugin-phpunit": "^0.18.4",
"symplify/monorepo-builder": "^11.2",
"vimeo/psalm": "^5.26"
Expand Down

0 comments on commit 5f00a3d

Please sign in to comment.