Skip to content

Replace squizlabs/php_codesniffer with symplify/easy-coding-standard … #56

Replace squizlabs/php_codesniffer with symplify/easy-coding-standard …

Replace squizlabs/php_codesniffer with symplify/easy-coding-standard … #56

Workflow file for this run

name: "Tests"
on:
pull_request: null
push:
branches:
- "5.x"
jobs:
phpunit:
name: "PHPUnit"
runs-on: ubuntu-latest
strategy:
matrix:
include:
- php-version: '8.2'
symfony-version: '7.0.*'
- php-version: '8.3'
symfony-version: '7.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 require --no-update symfony/framework-bundle:${{ matrix.symfony-version }}
composer require --no-update --dev symfony/http-kernel:${{ matrix.symfony-version }}
composer require --no-update --dev symfony/form:${{ matrix.symfony-version }}
composer require --no-update --dev symfony/twig-bundle:${{ matrix.symfony-version }}
composer require --no-update --dev symfony/validator:${{ matrix.symfony-version }}
composer require --no-update --dev symfony/translation:${{ matrix.symfony-version }}
composer require --no-update --dev symfony/yaml:${{ matrix.symfony-version }}
composer update --no-interaction --no-progress
- name: "Run tests with phpunit/phpunit"
run: vendor/bin/phpunit
codecov:
name: "Code coverage"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
- name: "Setup PHP"
uses: shivammathur/setup-php@v2
with:
coverage: xdebug
php-version: '8.3'
- name: "Install dependencies with composer"
run: composer update --no-interaction --no-progress
- 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
checkstyke:
name: "Checkstyle"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
- name: "Setup PHP"
uses: shivammathur/setup-php@v2
with:
coverage: xdebug
php-version: '8.3'
- name: "Install dependencies with composer"
run: composer update --no-interaction --no-progress
- name: "Run checkstyle with symplify/easy-coding-standard"
run: vendor/bin/ecs