Skip to content

Work Flows separated Symfony integrations. #404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 11 additions & 25 deletions .github/workflows/tests.yaml → .github/workflows/php.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: PHP

on:
pull_request: null
Expand All @@ -10,7 +10,7 @@ on:
jobs:
Tests:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental == true }}
continue-on-error: false
strategy:
fail-fast: false
matrix:
Expand All @@ -19,48 +19,34 @@ jobs:
- '7.4'
- '7.3'
- '7.2'
sentry_constraint: [false]
symfony_constraint: [false]
experimental: [false]
include:
# - description: 'sentry/sentry dev-develop'
# php: '7.4'
# sentry_constraint: 'dev-develop'
# experimental: true
- description: 'Symfony 4.4'
php: '7.3'
symfony_constraint: 4.4.*
- description: 'Symfony 3.4'
php: '7.2'
symfony_constraint: 3.4.*
env:
SYMFONY_DEPRECATIONS_HELPER: disabled
- description: 'prefer lowest'
php: '7.2'
composer_option: '--prefer-lowest'
env:
SYMFONY_DEPRECATIONS_HELPER: disabled

name: PHP ${{ matrix.php }} tests (${{ matrix.description }})
name: PHP ${{ matrix.php }} tests ${{ matrix.description }}
steps:
- uses: actions/checkout@v2

- uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: ${{ matrix.php }}-${{ matrix.symfony_constraint }}-${{ matrix.composer_option }}
key: ${{ matrix.php }}-${{ matrix.composer_option }}

- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- run: |
sed -ri '/symfony\/(monolog-bundle|phpunit-bridge|messenger)/! s/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony_constraint }}'"/' composer.json;
if: matrix.symfony_constraint

- run: composer remove --dev symfony/messenger --no-update
if: matrix.symfony_constraint == '3.4.*' || matrix.composer_option == '--prefer-lowest'
if: matrix.composer_option == '--prefer-lowest'

- run: composer update --no-progress --ansi ${{ matrix.composer_option }}
- run: composer require sentry/sentry dev-develop
if: matrix.sentry_constraint == 'dev-develop'

- run: vendor/bin/phpunit --coverage-clover=coverage.xml

- uses: codecov/codecov-action@v1
with:
file: './coverage.xml'
Expand Down
62 changes: 62 additions & 0 deletions .github/workflows/symfony.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Symfony

on:
pull_request: null
push:
branches:
- master
- 3.5.x

jobs:
Tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
symfony-versions: ['4.4.*', '5.1', '5.2']
php: ['7.2', '7.3', '7.4', '8.0']
include:
- description: '3.4.*'
php: '8.0'
symfony_constraint: 3.4.*
env:
SYMFONY_DEPRECATIONS_HELPER: disabled
- description: '3.4.*'
php: '7.4'
symfony_constraint: 3.4.*
env:
SYMFONY_DEPRECATIONS_HELPER: disabled
- description: '3.4.*'
php: '7.3'
symfony_constraint: 3.4.*
env:
SYMFONY_DEPRECATIONS_HELPER: disabled
- description: '3.4.*'
php: '7.2'
symfony_constraint: 3.4.*
env:
SYMFONY_DEPRECATIONS_HELPER: disabled

name: PHP ${{ matrix.php }} Symfony ${{ matrix.symfony-versions }}
steps:
- uses: actions/checkout@v2

- uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: ${{ matrix.php }}-${{ matrix.symfony-versions }}

- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug

- run: |
sed -ri '/symfony\/(monolog-bundle|phpunit-bridge|messenger)/! s/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony-versions }}'"/' composer.json;

- run: composer remove --dev symfony/messenger --no-update
if: matrix.symfony-versions == '3.4.*'

- run: composer update --no-progress --ansi

- run: composer tests