Update hemp/presenter requirement from ^2.0 to ^2.0 || ^3.0 #36
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: CI | |
on: | |
push: | |
pull_request: | |
env: | |
php_extensions: 'dom, iconv, intl, json, mbstring, opcache, pcntl, pcov, session, simplexml, xml, zip' | |
key: cache-v0.1 | |
jobs: | |
lint: | |
runs-on: '${{ matrix.operating_system }}' | |
timeout-minutes: 20 | |
strategy: | |
matrix: | |
operating_system: | |
- ubuntu-latest | |
php_versions: | |
- '7.4' | |
- '8.0' | |
- '8.1' | |
- '8.2' | |
fail-fast: false | |
env: | |
PHP_CS_FIXER_FUTURE_MODE: '0' | |
name: 'Lint PHP' | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v2 | |
- name: 'Setup cache environment' | |
id: cache-env | |
uses: shivammathur/cache-extensions@v1 | |
with: | |
php-version: '${{ matrix.php_versions }}' | |
extensions: '${{ env.php_extensions }}' | |
key: '${{ env.key }}' | |
- name: 'Cache extensions' | |
uses: actions/cache@v1 | |
with: | |
path: '${{ steps.cache-env.outputs.dir }}' | |
key: '${{ steps.cache-env.outputs.key }}' | |
restore-keys: '${{ steps.cache-env.outputs.key }}' | |
- name: 'Setup PHP' | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php_versions }} | |
extensions: '${{ env.php_extensions }}' | |
ini-values: memory_limit=-1 | |
tools: pecl, composer | |
coverage: none | |
- name: 'Setup problem matchers for PHP (aka PHP error logs)' | |
run: 'echo "::add-matcher::${{ runner.tool_cache }}/php.json"' | |
- name: 'Setup problem matchers for PHPUnit' | |
run: 'echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"' | |
- name: 'Install PHP dependencies with Composer' | |
run: composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader | |
working-directory: './' | |
- name: 'Linting PHP source files' | |
run: 'vendor/bin/ecs check --config=ecs.php .' |