-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/use-symfony-mailer
- Loading branch information
Showing
12 changed files
with
176 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# define your env variables for the test env here | ||
KERNEL_CLASS='App\Kernel' | ||
APP_SECRET='$ecretf0rt3st' | ||
SYMFONY_DEPRECATIONS_HELPER=999999 | ||
PANTHER_APP_ENV=panther | ||
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: CI | ||
|
||
on: ["push", "pull_request"] | ||
|
||
env: | ||
COMPOSER_ALLOW_SUPERUSER: '1' | ||
SYMFONY_DEPRECATIONS_HELPER: max[self]=0 | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
container: | ||
image: php:8.0-alpine | ||
options: >- | ||
--tmpfs /tmp:exec | ||
--tmpfs /var/tmp:exec | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install Composer | ||
run: wget -qO - https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --quiet | ||
- name: Cache Composer dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.composer/cache | ||
key: composer-php${{ matrix.php }}-highest- | ||
restore-keys: | | ||
composer-php${{ matrix.php }}-highest- | ||
composer- | ||
- name: Validate Composer | ||
run: composer validate | ||
- name: Install highest dependencies with Composer | ||
run: composer update --no-progress --ansi | ||
- name: Analyze | ||
run: vendor/bin/php-cs-fixer fix --ansi | ||
|
||
phpunit: | ||
name: PHPUnit (PHP ${{ matrix.php }} Deps ${{ matrix.dependencies }}) | ||
runs-on: ubuntu-latest | ||
container: | ||
image: php:${{ matrix.php }}-alpine | ||
options: >- | ||
--tmpfs /tmp:exec | ||
--tmpfs /var/tmp:exec | ||
strategy: | ||
matrix: | ||
php: | ||
- '7.3' | ||
- '7.4' | ||
- '8.0' | ||
dependencies: | ||
- lowest | ||
- highest | ||
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install Composer | ||
run: wget -qO - https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --quiet | ||
- name: Cache Composer dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.composer/cache | ||
key: composer-php${{ matrix.php }}-${{ matrix.dependencies }}- | ||
restore-keys: | | ||
composer-php${{ matrix.php }}-${{ matrix.dependencies }}- | ||
composer- | ||
- name: Install lowest dependencies with Composer | ||
if: matrix.dependencies == 'lowest' | ||
run: composer update --no-progress --prefer-stable --prefer-lowest --ansi | ||
- name: Install highest dependencies with Composer | ||
if: matrix.dependencies == 'highest' | ||
run: composer update --no-progress --ansi | ||
- name: Run tests with PHPUnit | ||
run: vendor/bin/phpunit --colors=always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html --> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="bin/.phpunit/phpunit.xsd" | ||
backupGlobals="false" | ||
colors="true" | ||
bootstrap="config/bootstrap.php" | ||
> | ||
<php> | ||
<ini name="error_reporting" value="-1" /> | ||
<server name="APP_ENV" value="test" force="true" /> | ||
<server name="SHELL_VERBOSITY" value="-1" /> | ||
<server name="SYMFONY_PHPUNIT_REMOVE" value="" /> | ||
<server name="SYMFONY_PHPUNIT_VERSION" value="7.5" /> | ||
<!-- ###+ symfony/swiftmailer-bundle ### --> | ||
<!-- For Gmail as a transport, use: "gmail://username:password@localhost" --> | ||
<!-- For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode=" --> | ||
<!-- Delivery is disabled by default via "null://localhost" --> | ||
<env name="MAILER_URL" value="null://localhost"/> | ||
<!-- ###- symfony/swiftmailer-bundle ### --> | ||
|
||
<!-- ###+ symfony/framework-bundle ### --> | ||
<env name="APP_ENV" value="dev"/> | ||
<env name="APP_SECRET" value="48bfdfefe5bea124be17563bbf82859d"/> | ||
<!-- env name="TRUSTED_PROXIES" value="127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16" --> | ||
<!-- env name="TRUSTED_HOSTS" value="'^(localhost|example\.com)$'" --> | ||
<!-- ###- symfony/framework-bundle ### --> | ||
</php> | ||
|
||
<testsuites> | ||
<testsuite name="Project Test Suite"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<filter> | ||
<whitelist> | ||
<directory>src</directory> | ||
</whitelist> | ||
</filter> | ||
|
||
<listeners> | ||
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" /> | ||
</listeners> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="config/bootstrap.php"> | ||
<coverage> | ||
<include> | ||
<directory>src</directory> | ||
</include> | ||
</coverage> | ||
<php> | ||
<ini name="error_reporting" value="-1"/> | ||
<server name="APP_ENV" value="test" force="true"/> | ||
<server name="SHELL_VERBOSITY" value="-1"/> | ||
<server name="SYMFONY_PHPUNIT_REMOVE" value=""/> | ||
<server name="SYMFONY_PHPUNIT_VERSION" value="7.5"/> | ||
<!-- ###+ symfony/framework-bundle ### --> | ||
<env name="APP_ENV" value="dev"/> | ||
<env name="APP_SECRET" value="48bfdfefe5bea124be17563bbf82859d"/> | ||
<!-- env name="TRUSTED_PROXIES" value="127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16" --> | ||
<!-- env name="TRUSTED_HOSTS" value="'^(localhost|example\.com)$'" --> | ||
<!-- ###- symfony/framework-bundle ### --> | ||
</php> | ||
<testsuites> | ||
<testsuite name="Project Test Suite"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<listeners> | ||
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/> | ||
</listeners> | ||
</phpunit> |
Empty file.
Empty file.
Empty file.
Empty file.
Oops, something went wrong.