Skip to content

Commit bef3c39

Browse files
committed
feat(Work Flows) separated symfony integrations.
1 parent b874955 commit bef3c39

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/symfony.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Symfony
2+
3+
on:
4+
pull_request: null
5+
push:
6+
branches:
7+
- master
8+
- 3.5.x
9+
10+
jobs:
11+
Tests:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
symfony-versions: ['3.4', '4.4.9', '5.1', '5.2']
17+
php: ['7.2', '7.3', '7.4', '8.0']
18+
19+
name: PHP ${{ matrix.php }} Symfony ${{ matrix.symfony-versions }}
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
- uses: actions/cache@v2
24+
with:
25+
path: ~/.composer/cache/files
26+
key: ${{ matrix.php }}-${{ matrix.symfony-versions }}
27+
28+
- uses: shivammathur/setup-php@v2
29+
with:
30+
php-version: ${{ matrix.php }}
31+
coverage: xdebug
32+
33+
- run: |
34+
sed -ri '/symfony\/(monolog-bundle|phpunit-bridge|messenger)/! s/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony-versions }}'"/' composer.json;
35+
36+
- run: composer remove --dev symfony/messenger --no-update
37+
if: matrix.symfony-versions == '3.4'
38+
39+
- run: composer remove --dev friendsofphp/php-cs-fixer --no-update
40+
if: matrix.symfony-versions == '3.4'
41+
42+
- run: composer update --no-progress --ansi
43+
44+
- run: composer tests

0 commit comments

Comments
 (0)