Skip to content

Commit 40e622a

Browse files
committed
test again symfony dev-master
1 parent 028ff27 commit 40e622a

File tree

1 file changed

+49
-2
lines changed

1 file changed

+49
-2
lines changed

.github/workflows/ci.yml

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545
- name: Analyze Source
4646
run: vendor/bin/psalm -c $GITHUB_WORKSPACE/psalm.xml
4747

48-
phpunit-tests:
49-
name: PHPUnit Test Suite
48+
stable-tests:
49+
name: Test against Symfony Stable
5050
runs-on: ubuntu-latest
5151

5252
strategy:
@@ -100,3 +100,50 @@ jobs:
100100
- name: Integration Tests
101101
run: vendor/bin/simple-phpunit -c $GITHUB_WORKSPACE/phpunit.xml.dist --testsuite integration
102102
if: always()
103+
104+
dev-master-tests:
105+
name: Test against Symfony Master
106+
runs-on: ubuntu-latest
107+
108+
strategy:
109+
fail-fast: false
110+
matrix:
111+
php-versions: ['7.2', '7.3', '7.4']
112+
113+
steps:
114+
- name: Set PHP Version
115+
run: sudo update-alternatives --set php /usr/bin/php${{ matrix.php-versions }}
116+
117+
- name: Disable Xdebug
118+
run: sudo rm /etc/php/${{ matrix.php-versions }}/cli/conf.d/20-xdebug.ini
119+
120+
- name: Get PHP Version
121+
run: |
122+
ver=$(php -v | grep -oP '(?<=PHP )\d.\d')
123+
echo "::set-output name=version::$ver"
124+
id: php-ver
125+
126+
- name: Using PHP Version from matrix
127+
run: |
128+
echo "Runner is not using PHP Version defined in the php-versions matrix."
129+
php -v
130+
exit 1
131+
if: steps.php-ver.outputs.version != matrix.php-versions
132+
133+
- name: Checkout
134+
uses: actions/[email protected]
135+
136+
- name: Install dependencies
137+
run: composer install --prefer-dist --no-progress --no-suggest
138+
139+
- name: Unit Tests
140+
run: vendor/bin/simple-phpunit -c $GITHUB_WORKSPACE/phpunit.xml.dist --testsuite unit
141+
if: always()
142+
143+
- name: Functional Tests
144+
run: vendor/bin/simple-phpunit -c $GITHUB_WORKSPACE/phpunit.xml.dist --testsuite functional
145+
if: always()
146+
147+
- name: Integration Tests
148+
run: vendor/bin/simple-phpunit -c $GITHUB_WORKSPACE/phpunit.xml.dist --testsuite integration
149+
if: always()

0 commit comments

Comments
 (0)