[BlockMarkupURLProcessor] Support URLs in CSS #119
This file contains hidden or 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: PHP CodeSniffer | |
| on: | |
| push: | |
| branches: [ trunk ] | |
| pull_request: | |
| jobs: | |
| phpcs: | |
| runs-on: ubuntu-latest | |
| name: PHP CodeSniffer | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.1' | |
| extensions: mbstring, json | |
| coverage: none | |
| tools: composer:v2 | |
| ini-values: memory_limit=1G | |
| - name: Get composer cache directory | |
| id: composer-cache | |
| run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
| - name: Cache composer dependencies | |
| uses: actions/cache@v3 | |
| 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 --prefer-dist --no-progress --no-suggest --no-dev --optimize-autoloader | |
| - name: Install dev dependencies for PHPCS | |
| run: composer install --dev --prefer-dist --no-progress --no-suggest --optimize-autoloader | |
| - name: Run PHP CodeSniffer | |
| run: php vendor/bin/phpcs -d memory_limit=1G . -n | |
| - name: Annotate PHPCS results | |
| if: failure() | |
| run: | | |
| echo "::error::PHP CodeSniffer found coding standard violations. Please run 'composer run-script lint-fix' to auto-fix issues where possible, or manually fix the remaining issues." |