-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Init github actions with support of PHP 8.1 and symfony6
- Loading branch information
1 parent
2446e2b
commit 8f920ad
Showing
7 changed files
with
172 additions
and
31 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,73 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
|
||
tests: | ||
name: Tests | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
php: [ '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ] | ||
symfony: ['symfony3', 'symfony4', 'symfony5'] | ||
include: | ||
- php: '8.0' | ||
symfony: 'symfony6' | ||
- php: '8.1' | ||
symfony: 'symfony6' | ||
fail-fast: false | ||
env: | ||
MATRIX_PHP: ${{ matrix.php }} | ||
MATRIX_SYMFONY: ${{ matrix.symfony }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: "none" | ||
php-version: "${{ matrix.php }}" | ||
tools: composer | ||
# PHP 7.1 development web server segfaults if timezone not set. | ||
ini-values: date.timezone=Europe/Berlin, error_reporting=-1, display_errors=On | ||
- name: Install scenario | ||
run: | | ||
.scenarios.lock/install "${{ matrix.symfony }}" "${DEPENDENCIES}" | ||
- name: Configure for PHP >= 7.2 | ||
if: "${{ matrix.php >= '7.2' }}" | ||
run: | | ||
composer require --no-update --dev dbrekelmans/bdi | ||
- name: Add browser drivers for PHP >= 7.2 | ||
if: "${{ matrix.php >= '7.2' }}" | ||
run: | | ||
vendor/bin/bdi detect drivers | ||
- name: Add browser drivers for PHP == 7.1 | ||
if: "${{ matrix.php == '7.1' }}" | ||
# additionally, place 'chromedriver' file also in folder 'driver' for symfony/panther >=0.9 and PHP 7.1 | ||
run: | | ||
bin/updatePantherChromeDriver.sh | ||
mkdir drivers | ||
mv vendor/symfony/panther/chromedriver-bin/chromedriver_linux64 drivers/chromedriver | ||
- name: Run unit tests | ||
run: | | ||
vendor/bin/phpunit -v | ||
- name: Run behat tests | ||
run: | | ||
vendor/bin/behat --config=tests/Behat/behat.yml | ||
- name: Archive logs artifacts | ||
if: ${{ failure() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: logs_php-${{ matrix.php }} | ||
path: | | ||
logs |
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 @@ | ||
vendor |
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,53 @@ | ||
{ | ||
"name": "robertfausk/behat-panther-extension", | ||
"type": "behat-extension", | ||
"description": "Symfony Panther extension for Behat", | ||
"keywords": [ | ||
"behat", | ||
"symfony", | ||
"panther", | ||
"web", | ||
"test", | ||
"browser", | ||
"gui" | ||
], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Robert Freigang", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"symfony/config": "^6.0", | ||
"php": ">=7.1", | ||
"behat/behat": "^3.0.5", | ||
"robertfausk/mink-panther-driver": "^1.0", | ||
"friends-of-behat/mink-extension": "^2.3.0" | ||
}, | ||
"require-dev": { | ||
"roave/security-advisories": "dev-master", | ||
"phpunit/phpunit": "~7.5|~9.3", | ||
"matthiasnoback/symfony-config-test": "^4.1", | ||
"g1a/composer-test-scenarios": "^3.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Robertfausk\\Behat\\PantherExtension\\": "../../src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Tests\\": "../../tests/" | ||
} | ||
}, | ||
"config": { | ||
"sort-packages": true, | ||
"vendor-dir": "../../vendor" | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.0.x-dev" | ||
} | ||
} | ||
} |
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