-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build with PHP 8 and move from travis-ci to github workflow
- Loading branch information
Showing
8 changed files
with
89 additions
and
89 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,54 @@ | ||
name: CI | ||
|
||
env: | ||
SYMFONY_PHPUNIT_DIR: "$HOME/symfony-bridge/.phpunit" | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- php-version: '7.3' | ||
- php-version: '7.4' | ||
- php-version: '8.0' | ||
- php-version: '7.3' | ||
symfony-version: '^4' | ||
- php-version: '7.3' | ||
symfony-version: '^5' | ||
- php-version: '7.4' | ||
symfony-version: '^5' | ||
- php-version: '8.0' | ||
symfony-version: '^5' | ||
- php-version: '7.3' | ||
composer-flag: '--prefer-stable --prefer-lowest' | ||
- php-version: '8.0' | ||
symfony-version: '^5' | ||
stability: 'dev' | ||
name: PHP ${{ matrix.php-version }} Test on Symfony ${{ matrix.symfony-version }} ${{ matrix.stability }} ${{ matrix.composer-flag }} | ||
steps: | ||
- name: Pull the code | ||
uses: actions/checkout@v2 | ||
- name: Install PHP and Composer | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
tools: composer:v2 | ||
- name: Check PHP Version | ||
run: php -v | ||
- name: Stability | ||
run: composer config minimum-stability ${{ matrix.stability }} | ||
if: ${{ matrix.stability }} | ||
- name: Symfony version | ||
run: composer require --no-update symfony/flex && composer config extra.symfony.require ${{ matrix.symfony-version}} | ||
if: ${{ matrix.symfony-version }} | ||
- name: Composer update | ||
run: composer update ${{ matrix.composer-flag }} --prefer-dist --no-interaction | ||
- name: Composer validate | ||
run: composer validate --strict --no-check-lock | ||
- name: Run tests | ||
run: php vendor/bin/simple-phpunit -v |
This file was deleted.
Oops, something went wrong.
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