Skip to content

Update phpstan docs #94

Update phpstan docs

Update phpstan docs #94

Workflow file for this run

name: Symfony
on:
pull_request:
push:
branches: [ master, develop ]
jobs:
Tests:
runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- 6379:6379
options: --entrypoint redis-server
strategy:
fail-fast: false
matrix:
symfony-versions:
- '4.4.*'
- '5.0.*'
- '5.1.*'
- '5.2.*'
- '5.3.*'
- '5.4.*'
php:
- '7.2'
- '7.3'
- '7.4'
- '8.0'
include:
- php: '8.0'
symfony-versions: '^6.0'
- php: '8.1'
symfony-versions: '^6.0'
- php: '8.2'
symfony-versions: '^7.0'
name: PHP ${{ matrix.php }} Symfony ${{ matrix.symfony-versions }}
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: ${{ matrix.php }}-${{ matrix.symfony-versions }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
extensions: redis
- name: Add PHPUnit matcher
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Set composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer
uses: actions/[email protected]
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.symfony-versions }}-composer-${{ hashFiles('composer.json') }}
restore-keys: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.symfony-versions }}-composer
- name: Install Symfony version
run: |
composer require symfony/framework-bundle:${{ matrix.symfony-versions }} --no-update --no-scripts
composer require symfony/yaml:${{ matrix.symfony-versions }} --no-update --no-scripts
- name: Install dependencies
run: composer install
- name: Run PHPUnit tests
run: vendor/bin/phpunit --coverage-clover=coverage.xml
- name: Run codecov
uses: codecov/codecov-action@v1
with:
file: './coverage.xml'
fail_ci_if_error: true