Skip to content

Commit

Permalink
Update new default branch to "main", add latest Symfony & PHP versions (
Browse files Browse the repository at this point in the history
#37)

* Update new default branch to "main", add latest Symfony & PHP versions

* Support version 3.0 of nyholm/symfony-bundle-test

* Permit Symfony ^7.0

* Update to latest config syntax

* Require symfony/property-access component to support object normalizer
  • Loading branch information
benr77 authored Jun 2, 2024
1 parent dddcf07 commit b530a24
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 19 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [master]
branches: [main]
pull_request:
branches: [master]
branches: [main]

jobs:

Expand All @@ -16,16 +16,18 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-latest, windows-latest ]
php: [ '7.4', '8.0', '8.1' ]
symfony: [ '4.4.*', '5.4.*', '6.0.*', '6.1.*' ]
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
symfony: [ '4.4.*', '5.4.*', '6.4.*', '7.1.*' ]
exclude:
- { php: '7.4', symfony: '6.0.*' }
- { php: '7.4', symfony: '6.1.*' }
- { php: '8.0', symfony: '6.1.*' }
- { php: '7.4', symfony: '6.4.*' }
- { php: '8.0', symfony: '6.4.*' }
- { php: '7.4', symfony: '7.1.*' }
- { php: '8.0', symfony: '7.1.*' }
- { php: '8.1', symfony: '7.1.*' }

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
Expand All @@ -35,7 +37,7 @@ jobs:
coverage: none

- name: Install composer dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}

Expand All @@ -47,13 +49,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ramsey/composer-install@v2
- uses: ramsey/composer-install@v3
- run: vendor/bin/ecs

phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ramsey/composer-install@v2
- uses: ramsey/composer-install@v3
- run: vendor/bin/phpstan
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@
"doctrine/orm": "^2.5",
"doctrine/doctrine-bundle": "^1.0 || ^2.0",
"ramsey/uuid-doctrine": "^1.5",
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0",
"symfony/lock": "^4.4 || ^5.0 || ^6.0",
"symfony/serializer": "^4.4 || ^5.0 || ^6.0",
"symfony/messenger": "^4.4 || ^5.0 || ^6.0",
"symfony/event-dispatcher": "^4.4 || ^5.0 || ^6.0"
"symfony/event-dispatcher": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/lock": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/messenger": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/property-access": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/serializer": "^4.4 || ^5.0 || ^6.0 || ^7.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"symplify/easy-coding-standard": "^11.1",
"nyholm/symfony-bundle-test": "^2.0",
"nyholm/symfony-bundle-test": "^2.0 || ^3.0",
"phpstan/phpstan": "^1.8"
},
"suggest": {
Expand Down
4 changes: 2 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ parameters:
bootstrapFiles:
- vendor/autoload.php

checkGenericClassInNonGenericObjectType: false

ignoreErrors:
-
identifier: missingType.generics
- '#Class Doctrine\\DBAL\\Platforms\\PostgreSqlPlatform not found#'

0 comments on commit b530a24

Please sign in to comment.