Skip to content

Commit

Permalink
Add new subject prefix logic + custome sender name
Browse files Browse the repository at this point in the history
  • Loading branch information
Dumazeau committed Aug 28, 2024
2 parents d6a7647 + f4339e4 commit 47a7a57
Show file tree
Hide file tree
Showing 11 changed files with 4,378 additions and 4,638 deletions.
1 change: 0 additions & 1 deletion .github/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3.7'
services:
application:
user: '1001:116'
16 changes: 8 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [push, pull_request]

jobs:
build-and-test:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
Expand All @@ -12,7 +12,7 @@ jobs:

- name: Start docker 🔧
run: |
docker-compose -f docker-compose.yml -f .github/docker-compose.yml up -d
docker compose -f docker-compose.yml -f .github/docker-compose.yml up -d
- name: Cache multiple paths
uses: actions/cache@v2
Expand All @@ -23,23 +23,23 @@ jobs:

- name: Install the dependencies 🔧
run: |
docker-compose exec -T application composer install --prefer-dist --no-interaction --no-progress
docker compose exec -T application composer install --prefer-dist --no-interaction --no-progress
- name: Execute the tests 🔧
run: |
docker-compose exec -T application php -d extension=pcov.so ./vendor/bin/phpunit --configuration phpunit.xml.dist --colors=never --coverage-text --log-junit reports/junit.xml --coverage-html reports/coverage --coverage-clover build/logs/clover.xml
docker compose exec -T application php -d extension=pcov.so ./vendor/bin/phpunit --configuration phpunit.xml.dist --colors=never --coverage-text --log-junit reports/junit.xml --coverage-html reports/coverage --coverage-clover build/logs/clover.xml
- name: Upload results to Coveralls 🚀
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_SECRET }}
run: |
docker-compose exec -T application composer global require php-coveralls/php-coveralls --prefer-dist --no-interaction --no-progress
docker-compose exec -T -e COVERALLS_REPO_TOKEN="$COVERALLS_REPO_TOKEN" application /home/application/.composer/vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
docker compose exec -T application composer global require php-coveralls/php-coveralls --prefer-dist --no-interaction --no-progress
docker compose exec -T -e COVERALLS_REPO_TOKEN="$COVERALLS_REPO_TOKEN" application /home/application/.composer/vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
- name: PHPInsights 🔧
run: |
docker-compose exec -T application ./vendor/bin/phpinsights
docker compose exec -T application ./vendor/bin/phpinsights
- name: PHPStan 🔧
run: |
docker-compose exec -T application ./vendor/bin/phpstan
docker compose exec -T application ./vendor/bin/phpstan
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ toc::[]

== Installation

This version of the bundle requires Symfony 5.4+ and PHP 8.0+.
This version of the bundle requires Symfony 6.0+ and PHP 8.1+.

[source,bash]
----
Expand Down
28 changes: 16 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"description": "Mailer bundle",
"type": "symfony-bundle",
"license": "MIT",
"minimum-stability": "dev",
"prefer-stable": true,
"authors": [
{
"name": "RichId",
Expand All @@ -16,23 +18,22 @@
"issues": "https://github.com/rich-id/mailer-bundle/issues"
},
"require": {
"php": "^8.0",
"php": "^8.1",
"doctrine/migrations": "^3.0",
"doctrine/orm": "^2.7",
"richcongress/bundle-toolbox": "^1.1",
"sensio/framework-extra-bundle": "^5.4|^6.0",
"symfony/event-dispatcher": "^5.4|^6.0",
"symfony/mailer": "^5.4|^6.0",
"symfony/mime": "^5.4|^6.0",
"symfony/translation": "^5.4|^6.0",
"symfony/twig-bundle": "^5.4|^6.0",
"doctrine/orm": "^2.7 || ^3.0",
"richcongress/bundle-toolbox": "^2.0",
"symfony/event-dispatcher": "^6.0 || ^7.0",
"symfony/mailer": "^6.0 || ^7.0",
"symfony/mime": "^6.0 || ^7.0",
"symfony/translation": "^6.0 || ^7.0",
"symfony/twig-bundle": "^6.0 || ^7.0",
"twig/twig": "^3.0"
},
"require-dev": {
"doctrine/doctrine-bundle": "^2.0",
"phpunit/phpunit": "^9.5",
"richcongress/static-analysis": "^0.1",
"richcongress/test-suite": "^0.1",
"richcongress/static-analysis": "^0.2",
"richcongress/test-suite": "^0.2",
"roave/security-advisories": "dev-latest"
},
"autoload": {
Expand All @@ -47,7 +48,10 @@
},
"config": {
"discard-changes": true,
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"post-install-cmd": [
Expand Down
Loading

0 comments on commit 47a7a57

Please sign in to comment.