Skip to content

Commit

Permalink
Run the correct tests in the CI (#1094)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Oct 12, 2021
1 parent a97f88f commit 5a5bf05
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
pull_request:
push:
branches: [ master, 2.x, 1.x ]
branches: [ master, 2.x ]

jobs:
run:
Expand Down Expand Up @@ -46,17 +46,27 @@ jobs:
php-version: ${{ matrix.php }}

- name: Install dependencies
run: composer require "symfony/symfony:${{ matrix.symfony-versions }}" --no-update
run: composer install

- name: Setup Symfony version
run: composer bin symfony require "symfony/symfony:${{ matrix.symfony-versions }}" --no-update
if: matrix.symfony-versions

- name: Install dependencies
run: composer install
- name: Install bin dependencies
run: composer bin symfony install
if: matrix.symfony-versions

- name: Run PHPUnit tests
run: XDEBUG_MODE=coverage bin/phpunit --coverage-clover=coverage.xml
if: false == matrix.symfony-versions

- name: Run Symfony tests
run: bin/phpunit --configuration phpunit_symfony.xml.dist
if: matrix.symfony-versions

- name: Run codecov
uses: codecov/codecov-action@v1
with:
file: './coverage.xml'
fail_ci_if_error: true
if: false == matrix.symfony-versions

0 comments on commit 5a5bf05

Please sign in to comment.