-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab1909a
commit d1d1bec
Showing
20 changed files
with
652 additions
and
46 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,17 @@ | ||
name: PantherExtension CI - Config | ||
on: [ push, pull_request ] | ||
jobs: | ||
panther_extension: | ||
name: Configuration | ||
# https://hub.docker.com/_/ubuntu/ | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
# https://github.com/actions/checkout (official) | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# https://github.com/azohra/shell-linter (community) | ||
- name: Lint check | ||
uses: azohra/[email protected] | ||
with: | ||
path: "docker/php" |
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,59 @@ | ||
name: PantherExtension CI | ||
on: [ pull_request ] | ||
jobs: | ||
panther_extension: | ||
name: PHP ${{ matrix.php-versions }} | ||
# https://hub.docker.com/_/ubuntu/ | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
php-versions: ['7.1', '7.2', '7.3', '7.4'] | ||
steps: | ||
# https://github.com/actions/checkout (official) | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# https://github.com/shivammathur/setup-php (community) | ||
- name: Setup PHP, extensions and composer with shivammathur/setup-php | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: zip, xdebug | ||
coverage: xdebug | ||
env: | ||
update: true | ||
|
||
# —— Composer️ ————————————————————————————————————————————————————————— | ||
- name: Validate composer.json and composer.lock | ||
run: composer validate | ||
|
||
- name: Get composer cache directory | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
||
- name: Cache composer dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: Install Composer dependencies | ||
run: composer install | ||
|
||
# —— Style ————————————————————————————————————————————————————————— | ||
- name: Launch PHP-CS-FIXER - src | ||
run: php vendor/bin/php-cs-fixer fix --dry-run src | ||
|
||
# —— Style ————————————————————————————————————————————————————————— | ||
- name: Launch PHP-CS-FIXER - tests | ||
run: php vendor/bin/php-cs-fixer fix --dry-run tests | ||
|
||
# —— PHPUnit ————————————————————————————————————————————————————————— | ||
- name: Launch PHPUnit tests | ||
run: php vendor/bin/phpunit tests | ||
|
||
# —— Infection ————————————————————————————————————————————————————————— | ||
- name: Launch Infection analysis | ||
run: php vendor/bin/infection |
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 |
---|---|---|
|
@@ -9,3 +9,6 @@ docker-compose.override.yml | |
|
||
# Style | ||
.php_cs.cache | ||
|
||
# Infection | ||
infection.log |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
# Ajax |
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,28 @@ | ||
# Client | ||
|
||
[Symfony Panther](https://github.com/symfony/panther) provide a default client which is capable of using Chrome, Firefox and Selenium. | ||
This extension aim to provide the same features (even if some may be missing for now), here's a list | ||
of what's provided: | ||
|
||
- Additional client | ||
|
||
[Symfony Panther](https://github.com/symfony/panther) provides a shortcut which helps you to handle real-time features ([Mercure](https://mercure.rocks/), Websockets, etc), | ||
this extension provide the same feature with the Gherkin approach: | ||
|
||
```gherkin | ||
Scenario: I should be able to test the real-time comments | ||
Given I am on "/" | ||
And I follow "Blog" | ||
And I create a new client "test" using the "chrome" driver | ||
Then I should have 2 clients | ||
When I switch to client "test" | ||
And I fill in "comment" with "new random comment" | ||
And I press "Submit" | ||
And I wait for ".comments" during 5 | ||
Then I should see 2 comments | ||
And I switch to default client | ||
Then I should see 2 comments | ||
``` | ||
|
||
During this scenario, the extension will create a new client and let you switch to it if needed. | ||
Once the scenario is done, the clients are automatically reset and you can continue to use the "default" client. |
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,8 @@ | ||
version: '3.7' | ||
|
||
services: | ||
blackfire: | ||
image: blackfire/blackfire | ||
environment: | ||
BLACKFIRE_SERVER_ID: 'test' | ||
BLACKFIRE_SERVER_TOKEN: 'test' |
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,15 @@ | ||
{ | ||
"timeout": 10, | ||
"source": { | ||
"directories": [ | ||
"src" | ||
] | ||
}, | ||
"logs": { | ||
"text": "infection.log" | ||
}, | ||
"mutators": { | ||
"@default": true | ||
}, | ||
"testFramework":"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
Oops, something went wrong.