Skip to content

Changed return type of WorkflowControllerTrait::getWorkflow for WorkflowInterface #29

Changed return type of WorkflowControllerTrait::getWorkflow for WorkflowInterface

Changed return type of WorkflowControllerTrait::getWorkflow for WorkflowInterface #29

Workflow file for this run

name: "Tests"
on:
pull_request: null
push:
branches:
- "main"
- "0.*.x"
jobs:
phpunit:
name: "PHPUnit"
runs-on: ubuntu-latest
strategy:
matrix:
include:
- php-version: 7.4
symfony-version: 4.4.*
sonata-version: ^4.0
- php-version: 8.0
symfony-version: 5.4.*
sonata-version: ^4.0
- php-version: 8.1
symfony-version: 6.1.*
sonata-version: ^4.0
steps:
- name: "Checkout"
uses: actions/checkout@v2
- name: "Setup PHP"
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: ${{ matrix.php-version }}
- name: "Install dependencies with composer"
run: |
composer require --no-update symfony/workflow:${{ matrix.symfony-version }}
composer require --no-update sonata-project/admin-bundle:${{ matrix.sonata-version }}
composer update --no-interaction --no-progress --no-suggest
- name: "Run tests with phpunit/phpunit"
run: vendor/bin/phpunit
checkstyke:
name: "Checkstyle"
runs-on: ubuntu-latest
strategy:
matrix:
include:
- php-version: 8.1
symfony-version: 6.1.*
steps:
- name: "Checkout"
uses: actions/checkout@v2
- name: "Setup PHP"
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: ${{ matrix.php-version }}
- name: "Install dependencies with composer"
run: |
composer update --no-interaction --no-progress --no-suggest
- name: "Run checkstyle with squizlabs/php_codesniffer"
run: vendor/bin/phpcs
codecov:
name: "Code coverage"
runs-on: ubuntu-latest
strategy:
matrix:
include:
- php-version: 8.1
symfony-version: 6.1.*
steps:
- name: "Checkout"
uses: actions/[email protected]
- name: "Setup PHP"
uses: shivammathur/setup-php@v2
with:
coverage: xdebug
php-version: ${{ matrix.php-version }}
- name: "Install dependencies with composer"
run: |
composer require --no-update symfony/workflow:${{ matrix.symfony-version }}
composer update --no-interaction --no-progress --no-suggest
- name: "Run tests with phpunit/phpunit"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
vendor/bin/phpunit --coverage-clover coverage.xml
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v1