Skip to content

Commit

Permalink
Make sure we are testing with different Symfony versions (#410)
Browse files Browse the repository at this point in the history
* Make sure we are testing with different symfony versions

* Upload coverage better

* minor
  • Loading branch information
Nyholm authored Mar 7, 2020
1 parent a1ca1bb commit 7044577
Showing 1 changed file with 35 additions and 14 deletions.
49 changes: 35 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ jobs:
strategy:
max-parallel: 10
matrix:
php: ['7.1', '7.2', '7.3', '7.4']
env:
- SYMFONY_REQUIRE: '3.4.*'
- SYMFONY_REQUIRE: '4.4.*'
- SYMFONY_REQUIRE: '5.0.*'
php: ['7.2', '7.3', '7.4']
sf_version: ['3.4.*', '4.4.*', '5.0.*']

steps:
- name: Set up PHP
Expand All @@ -27,10 +24,35 @@ jobs:
uses: actions/checkout@v2

- name: Download dependencies
run: |
echo "SYMFONY_REQUIRE:"
echo $SYMFONY_REQUIRE
composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable
env:
SYMFONY_REQUIRE: ${{ matrix.sf_version }}
run: composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable

- name: Run tests
run: ./vendor/bin/phpunit --testsuite Unit

build71:
name: Build PHP 7.1
runs-on: ubuntu-latest
strategy:
max-parallel: 10
matrix:
sf_version: ['3.4.*', '4.4.*']

steps:
- name: Set up PHP
uses: shivammathur/[email protected]
with:
php-version: 7.1
tools: flex

- name: Checkout code
uses: actions/checkout@v2

- name: Download dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.sf_version }}
run: composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable

- name: Run tests
run: ./vendor/bin/phpunit --testsuite Unit
Expand All @@ -41,10 +63,7 @@ jobs:
strategy:
max-parallel: 10
matrix:
env:
- SYMFONY_REQUIRE: '3.4.*'
- SYMFONY_REQUIRE: '4.4.*'
- SYMFONY_REQUIRE: '5.0.*'
sf_version: ['3.4.*', '4.4.*', '5.0.*']

steps:
- name: Set up PHP
Expand All @@ -58,6 +77,8 @@ jobs:
uses: actions/checkout@v2

- name: Download dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.sf_version }}
run: composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable

- name: Start servers
Expand All @@ -68,7 +89,7 @@ jobs:
./vendor/bin/http_test_server > /dev/null 2>&1 &
- name: Run tests
run: ./vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml
run: ./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml

- name: Upload coverage
run: |
Expand Down

0 comments on commit 7044577

Please sign in to comment.