|
45 | 45 | - name: Analyze Source
|
46 | 46 | run: vendor/bin/psalm -c $GITHUB_WORKSPACE/psalm.xml
|
47 | 47 |
|
48 |
| - phpunit-tests: |
49 |
| - name: PHPUnit Test Suite |
| 48 | + stable-tests: |
| 49 | + name: Test against Symfony Stable |
50 | 50 | runs-on: ubuntu-latest
|
51 | 51 |
|
52 | 52 | strategy:
|
@@ -100,3 +100,50 @@ jobs:
|
100 | 100 | - name: Integration Tests
|
101 | 101 | run: vendor/bin/simple-phpunit -c $GITHUB_WORKSPACE/phpunit.xml.dist --testsuite integration
|
102 | 102 | 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 | + |
| 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