MDTT-38: Fix for CI failure. #191
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [ push, pull_request ] | |
jobs: | |
symfony: | |
name: Tests (PHP ${{ matrix.php-versions }}) | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
php-versions: [ '8.1' ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP, extensions and composer with shivammathur/setup-php | |
uses: shivammathur/setup-php@verbose | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: Get composer cache directory | |
id: composer-cache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache composer dependencies | |
uses: actions/cache@v1 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Install Composer dependencies | |
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader | |
- name: Security check installed dependencies | |
uses: symfonycorp/security-checker-action@v4 | |
- name: Check PSR2 code style (PHP_CodeSniffer) | |
run: composer php-cs | |
- name: Analyse PHP Code (PHPStan) | |
run: composer phpstan | |
# As codecov throwing lot of errors, disabling the respective check temporarily | |
# Reference discussion: https://github.com/axelerant/mdtt/pull/24#pullrequestreview-1632092133 | |
# - name: Validate code quality | |
# run: composer phpunit-with-coverage | |
# - name: Send code coverage report to Codecov.io | |
# uses: codecov/codecov-action@v2 | |
# with: | |
# token: ${{ secrets.CODECOV_TOKEN }} |