-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from higidi/master
Primarily add support for SF 5
- Loading branch information
Showing
20 changed files
with
474 additions
and
75 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.phpunit.xml.dist export-ignore |
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,72 @@ | ||
name: "Continuous Integration" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: ~ | ||
|
||
jobs: | ||
phpunit: | ||
name: "PHPUnit" | ||
runs-on: "ubuntu-20.04" | ||
env: | ||
SYMFONY_REQUIRE: ${{matrix.symfony-require}} | ||
SYMFONY_DEPRECATIONS_HELPER: ${{matrix.symfony-deprecations-helper}} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: | ||
- "7.2" | ||
- "7.3" | ||
- "7.4" | ||
dependencies: | ||
- "highest" | ||
stability: | ||
- "stable" | ||
symfony-require: | ||
- "4.4.*" | ||
- "5.3.*" | ||
symfony-deprecations-helper: | ||
- "" | ||
include: | ||
# Tests the lowest set of dependencies | ||
- dependencies: "lowest" | ||
stability: "stable" | ||
php-version: "7.2" | ||
symfony-deprecations-helper: "weak" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2" | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
if: "${{ matrix.php-version != '7.1' }}" | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Globally install symfony/flex" | ||
run: "composer global require --no-progress --no-scripts --no-plugins symfony/flex" | ||
|
||
- name: "Enforce using stable dependencies" | ||
run: "composer config minimum-stability stable" | ||
if: "${{ matrix.stability == 'stable' }}" | ||
|
||
- name: "Install dependencies with Composer" | ||
uses: "ramsey/composer-install@v1" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
composer-options: "--prefer-dist" | ||
|
||
- name: "Run PHPUnit" | ||
run: "vendor/bin/phpunit --log-junit phpunit.xml" | ||
|
||
- name: "Publish Test Report" | ||
uses: "mikepenz/action-junit-report@v2" | ||
if: "always()" # always run even if the previous step fails | ||
with: | ||
report_paths: "phpunit.xml" |
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
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,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit colors="true" bootstrap="vendor/autoload.php"> | ||
<testsuites> | ||
<testsuite name="php-vcr/vcr-bundle Functional Tests"> | ||
<directory>tests/Functional/</directory> | ||
</testsuite> | ||
<testsuite name="php-vcr/vcr-bundle Unit Tests"> | ||
<directory>tests/Unit/</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<filter> | ||
<whitelist> | ||
<directory>src</directory> | ||
<exclude> | ||
<directory>src/Resources</directory> | ||
</exclude> | ||
</whitelist> | ||
</filter> | ||
|
||
<listeners> | ||
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" /> | ||
</listeners> | ||
</phpunit> |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<div class="vcr_logs"> | ||
{% for index, log in logs %} | ||
{% include 'VCRVCRBundle:Profiler:call.html.twig' %} | ||
{% include 'VCRBundle:Profiler:call.html.twig' %} | ||
{% endfor %} | ||
</div> | ||
|
||
{% include 'VCRVCRBundle:Profiler:javascript.html.twig' %} | ||
{% include 'VCRBundle:Profiler:javascript.html.twig' %} |
Oops, something went wrong.