|
50 | 50 | run: | |
51 | 51 | composer require "twig/twig:${{ matrix.twig }}" --no-update --no-scripts |
52 | 52 |
|
53 | | - - |
54 | | - name: Remove Swiftmailer on Symfony >= 6 |
55 | | - if: matrix.symfony != '5.4.*' |
56 | | - run: | |
57 | | - composer remove --dev symfony/swiftmailer-bundle --no-update --no-scripts |
58 | | - rm src/Bundle/spec/Sender/Adapter/SwiftMailerAdapterSpec.php |
59 | | -
|
60 | 53 | - |
61 | 54 | name: Install dependencies |
62 | 55 | run: | |
@@ -87,36 +80,15 @@ jobs: |
87 | 80 |
|
88 | 81 | - |
89 | 82 | name: Test bundle (with all services) |
90 | | - if: matrix.symfony == '5.4.*' |
91 | 83 | run: | |
92 | 84 | rm -rf src/Bundle/test/var/cache |
93 | | - composer require symfony/mailer --no-interaction --no-scripts |
94 | | - composer require symfony/swiftmailer-bundle --no-interaction --no-scripts |
95 | | - (cd src/Bundle/test && APP_ENV=test bin/console lint:container) |
96 | | -
|
97 | | - - |
98 | | - name: Test bundle (with Swift Mailer) |
99 | | - if: matrix.symfony == '5.4.*' |
100 | | - run: | |
101 | | - rm -rf src/Bundle/test/var/cache |
102 | | - composer remove symfony/mailer --no-scripts |
103 | | - composer require symfony/swiftmailer-bundle --no-interaction --no-scripts |
104 | | - (cd src/Bundle/test && APP_ENV=test_with_swiftmailer bin/console lint:container) |
105 | | - vendor/bin/phpunit src/Bundle/tests/Functional/SwiftmailerSenderTest.php |
106 | | -
|
107 | | - - |
108 | | - name: Test bundle (with SymfonyMailer) |
109 | | - run: | |
110 | | - rm -rf src/Bundle/test/var/cache |
111 | | - composer remove symfony/swiftmailer-bundle --no-scripts |
112 | 85 | composer require symfony/mailer --no-scripts |
113 | | - (cd src/Bundle/test && APP_ENV=test_with_symfony_mailer bin/console lint:container) |
114 | | - vendor/bin/phpunit src/Bundle/tests/Functional/SymfonyMailerSenderTest.php |
| 86 | + (cd src/Bundle/test && APP_ENV=test bin/console lint:container) |
| 87 | + vendor/bin/phpunit |
115 | 88 |
|
116 | 89 | - |
117 | 90 | name: Run lint container (with no mailers) |
118 | 91 | run: | |
119 | 92 | rm -rf src/Bundle/test/var/cache |
120 | 93 | composer remove symfony/mailer --no-scripts |
121 | | - composer remove symfony/swiftmailer-bundle --no-scripts |
122 | 94 | (cd src/Bundle/test && APP_ENV=test_no_mailers bin/console lint:container) |
0 commit comments