Skip to content

adapted number of allowed deprecation notices #10

adapted number of allowed deprecation notices

adapted number of allowed deprecation notices #10

Workflow file for this run

name: Tests
on:
pull_request: ~
push: ~
concurrency:
group: ${{ github.workflow }} @ ${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
tests:
name: PHP ${{ matrix.php }} - ${{ matrix.dependencies || format('Symfony {0}', matrix.symfony) }}${{ (matrix.allow-failure && ' 🔕') || '' }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.allow-failure || false }}
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
SYMFONY_DEPRECATIONS_HELPER: ${{ matrix.symfony-deprecations }}
strategy:
fail-fast: false
matrix:
include:
-
php: '7.3'
dependencies: lowest
doctrine-cache-bundle: true
symfony-deprecations: max[self]=2&max[indirect]=1360
-
php: '8.2'
dependencies: highest
-
php: '7.3'
symfony: '4.4.*'
doctrine-cache-bundle: true
symfony-deprecations: max[indirect]=4
-
php: '7.4'
symfony: '5.4.*'
-
php: '8.0'
symfony: '5.4.*'
-
php: '8.1'
symfony: '5.4.*'
-
php: '8.1'
symfony: '6.3.*'
-
php: '8.2'
symfony: '6.4.*'
stability: dev
allow-failure: true
services:
redis:
image: redis
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: set up MySQL
run: |
sudo systemctl start mysql
echo '
CREATE DATABASE IF NOT EXISTS test;
DROP USER IF EXISTS "tester"@"localhost";
CREATE USER "tester"@"localhost" IDENTIFIED WITH mysql_native_password BY "";
GRANT ALL ON test.* TO "tester"@"localhost";
FLUSH PRIVILEGES;
' > /tmp/mysql-init.sql
mysql --user=root --password=root -e 'source /tmp/mysql-init.sql'
- name: checkout
uses: actions/checkout@v3
- name: setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mysql, redis
coverage: pcov
ini-values: memory_limit=-1
tools: flex
env:
fail-fast: true # interrupt on extension setup error
- name: require doctrine/cache-bundle
if: matrix.doctrine-cache-bundle == true
run: composer require --no-update --dev doctrine/doctrine-cache-bundle:^1.3.1
- name: use dev dependencies
if: matrix.stability == 'dev'
run: composer config minimum-stability dev
- name: install dependencies with Composer
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.dependencies }}
composer-options: --prefer-dist
- name: run PHPUnit
run: vendor/bin/phpunit -v --coverage-clover build/logs/clover.xml
env:
REDIS_DSN: redis://localhost:6379
- name: upload code coverage data
if: github.repository == 'craue/CraueConfigBundle'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v