Bump twig/twig from 2.15.3 to 2.16.1 #38
Workflow file for this run
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: build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ubuntu-latest] | |
php-versions: ['7.4', '8.0'] | |
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Install PHP | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extension-csv: dom | |
coverage: xdebug | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-interaction --ignore-platform-reqs | |
- name: PHP Code Sniffer | |
if: matrix.php-versions == '7.4' | |
run: vendor/bin/phpcs --report=full --extensions=php -p --standard=PSR2 ./src ./tests | |
- name: PHP Mess Detector | |
if: matrix.php-versions == '7.4' | |
run: vendor/bin/phpmd ./src text phpmd.xml | |
- name: PHP Unit Tests with coverage | |
if: matrix.php-versions == '7.4' | |
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml | |
- name: PHP Unit Tests | |
if: matrix.php-versions != '7.4' | |
run: vendor/bin/phpunit | |
- name: Send to coveralls | |
if: matrix.php-versions == '7.4' | |
run: php vendor/bin/php-coveralls -v | |
env: | |
COVERALLS_RUN_LOCALLY: 1 | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} |