Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add php 8.3 and add Symfony stable versions #3

Merged
merged 1 commit into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
name: Integration

on: [push]
run-name: Run psalm of ${{ github.event.pull_request.title }}
on:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
psalm:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1','8.2']
php-versions:
- '8.1'
- '8.2'
- '8.3'
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v3
Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
name: run-tests
run-name: ${{ github.actor }} made changes
on: [push]
run-name: Run phpunit tests of ${{ github.event.pull_request.title }}
on:
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1','8.2']
php-versions:
- '8.1'
- '8.2'
- '8.3'
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- name: Checkout
Expand All @@ -22,6 +30,8 @@ jobs:
run: php -v
- name: Composer
uses: php-actions/composer@v6
with:
args: "--ignore-platform-req=php"
- name: Tests
uses: php-actions/phpunit@v3
with:
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
}
],
"require": {
"php": ">=8.1",
"symfony/http-kernel": "^5.4|^6.0",
"symfony/dependency-injection": "^5.4|^6.0",
"symfony/config": "^5.4|^6.0"
"php": "^8.1|^8.2|^8.3",
"symfony/http-kernel": "^5.4|^6.4|^7.1",
"symfony/dependency-injection": "^5.4|^6.4|^7.1",
"symfony/config": "^5.4|^6.4|^7.1"
},
"require-dev": {
"phpunit/phpunit": "^9.6|^10.0",
Expand Down
2 changes: 1 addition & 1 deletion src/BoilerPlateBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public function getContainerExtension(): ?ExtensionInterface
return new BoilerPlateBundleExtension();
}

return $this->extension;
return $this->extension ?: null;
}
}
Loading